-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (38 loc) · 897 Bytes
/
build.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
39
40
41
42
43
44
45
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ruby: "2.7"
puppet: "~> 7.0"
- ruby: "3.2"
puppet: "~> 8.0"
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
name: Set up Ruby ${{ matrix.ruby }}
with:
ruby-version: ${{ matrix.ruby }}
- name: Install bundle
env:
PUPPET_GEM_VERSION: ${{ matrix.puppet }}
run: |
bundle config set --local without system_tests
rm -f Gemfile.lock
bundle install
- name: Build and test
env:
SPEC_OPTS: "--format documentation"
run: |
bundle exec rake validate
bundle exec rake lint
bundle exec rake spec