-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (43 loc) · 1.01 KB
/
main.yml
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
39
40
41
42
43
44
45
46
name: CI
on:
- pull_request
- push
env:
BUNDLE_WITHOUT: release
BEAKER_PUPPET_COLLECTION: puppet6
jobs:
tests:
runs-on:
- ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- ruby: "2.4"
- ruby: "2.5"
- ruby: "2.6"
- ruby: "2.7"
#- ruby: "3.0"
# coverage: "yes"
env:
COVERAGE: ${{ matrix.coverage }}
steps:
- uses: actions/checkout@v3
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
#- name: Check versions and initial cleanup
# run: |
# bundle -v
# rm -f Gemfile.lock
# gem update --system
# gem --version
- name: Check Lint
run: bundle exec rake validate lint
- name: Check Rubocop
run: bundle exec rake rubocop
- name: RSPEC
run: bundle exec rake parallel_spec