-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (52 loc) · 1.45 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
53
54
55
name: build-and-test
on:
push:
schedule:
- cron: "0 0 * * 1"
jobs:
unit-tests:
name: "Puppet ${{ matrix.puppet-version }} Unit Tests"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ruby-version: 3.1
puppet-version: 7
- ruby-version: 3.2
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-10-64
label: "Debian 10"
- beaker-set: default
label: "Debian 11"
- beaker-set: ubuntu-2004-64
label: "Ubuntu 20.04"
- beaker-set: ubuntu-2204-64
label: "Ubuntu 22.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