-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (51 loc) · 1.47 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
47
48
49
50
51
52
name: build-and-test
on: [push]
jobs:
unit-tests:
name: "Puppet ${{ matrix.puppet-version }} Unit Tests"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ruby-version: 2.7
puppet-version: 6
- ruby-version: 3.1
puppet-version: 7
- ruby-version: 3.1
puppet-version: 8
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby-version}}
- run: bundle install
env:
PUPPET_VERSION: "~> ${{ matrix.puppet-version }}"
- run: bundle exec rake test
env:
PUPPET_VERSION: "~> ${{ matrix.puppet-version }}"
SPEC_OPTS: '--format documentation'
RUBYOPT: "-W0"
acceptance-tests:
name: "${{ matrix.label }} Acceptance Tests"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- beaker-set: debian-9-64
label: "Debian 9"
- beaker-set: default
label: "Debian 10"
- beaker-set: ubuntu-1804-64
label: "Ubuntu 18.04"
- beaker-set: ubuntu-2004-64
label: "Ubuntu 20.04"
steps:
- uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- run: bundle install
- run: bundle exec rake beaker