-
-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (34 loc) · 1.02 KB
/
pdk.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
name: PDK
on:
- 'push'
- 'pull_request'
jobs:
validate:
runs-on: ubuntu-latest
container: puppet/pdk:latest
outputs:
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }}
github_action_test_matrix: ${{ steps.get-outputs.outputs.github_action_test_matrix }}
steps:
- name: Install build-essential
run: |
export DEBIAN_FRONTEND=noninteractive;
apt-get --yes update
apt-get --yes install build-essential
- name: Check out repository code
uses: actions/checkout@v3
- name: run pdk validate
run: pdk validate
unit-test:
runs-on: ubuntu-latest
container: puppet/pdk:latest
steps:
- name: Install build-essential
run: |
export DEBIAN_FRONTEND=noninteractive;
apt-get --yes update
apt-get --yes install build-essential
- name: Check out repository code
uses: actions/checkout@v3
- name: run pdk test unit
run: pdk test unit