-
Notifications
You must be signed in to change notification settings - Fork 84
49 lines (45 loc) · 1.38 KB
/
pr.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
---
name: PR tests
on: pull_request
jobs:
static:
name: 'Syntax validation'
runs-on: ubuntu-latest
timeout-minutes: 10
container: puppet/pdk:3.3.0.0
steps:
- uses: actions/checkout@v4
- name: Run static validations
run: /usr/local/bin/pdk bundle exec rake validate lint check
env:
BUNDLE_WITHOUT: development:system_tests:release
unit:
name: 'Unit tests'
runs-on: ubuntu-latest
timeout-minutes: 60
# container: puppet/puppet-dev-tools:4.x
container: puppet/pdk:3.3.0.0
steps:
- uses: actions/checkout@v4
- name: Run unit tests on Puppet 8
run: /usr/local/bin/pdk test unit --puppet-version=8
env:
BUNDLE_WITHOUT: development:system_tests:release
continue-on-error: true
- name: Run unit tests on Puppet 7
run: /usr/local/bin/pdk test unit --puppet-version=7
env:
BUNDLE_WITHOUT: development:system_tests:release
continue-on-error: true
unit_legacy:
name: 'Unit tests Legacy Puppet'
runs-on: ubuntu-latest
timeout-minutes: 60
container: puppet/puppet-dev-tools:4.x
steps:
- uses: actions/checkout@v4
- name: Run unit tests on Puppet 6
run: /usr/local/bin/pdk test unit --puppet-version=6
env:
BUNDLE_WITHOUT: development:system_tests:release
continue-on-error: true