forked from puppetlabs/pxp-agent-vanagon
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 895 Bytes
/
checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
name: Checks
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
checks:
name: ${{ matrix.cfg.check }}
strategy:
matrix:
cfg:
- {check: rubocop, os: ubuntu-18.04, ruby: 2.5}
- {check: commits, os: ubuntu-18.04, ruby: 2.5}
runs-on: ${{ matrix.cfg.os }}
steps:
- name: Checkout current PR
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install ruby version ${{ matrix.cfg.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.cfg.ruby }}
- name: Install bundler and gems
run: |
gem install bundler
bundle config set without packaging documentation
bundle install --jobs 4 --retry 3
- name: Run ${{ matrix.cfg.check }} check
run: bundle exec rake ${{ matrix.cfg.check }}