Skip to content

Commit 8cc0617

Browse files
committed
add .github configs
1 parent 8b7c930 commit 8cc0617

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/FUNDING.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: [cirrax]
2+
custom: ["https://cirrax.com"]

.github/workflows/pdk.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: PDK
2+
3+
on:
4+
- 'push'
5+
- 'pull_request'
6+
7+
jobs:
8+
validate:
9+
runs-on: ubuntu-latest
10+
container: puppet/pdk:latest
11+
outputs:
12+
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }}
13+
github_action_test_matrix: ${{ steps.get-outputs.outputs.github_action_test_matrix }}
14+
steps:
15+
- name: Install build-essential
16+
run: |
17+
export DEBIAN_FRONTEND=noninteractive;
18+
apt-get --yes update
19+
apt-get --yes install build-essential
20+
- name: Check out repository code
21+
uses: actions/checkout@v3
22+
- name: run pdk validate
23+
run: pdk validate
24+
25+
unit-test:
26+
runs-on: ubuntu-latest
27+
container: puppet/pdk:latest
28+
steps:
29+
- name: Install build-essential
30+
run: |
31+
export DEBIAN_FRONTEND=noninteractive;
32+
apt-get --yes update
33+
apt-get --yes install build-essential
34+
- name: Check out repository code
35+
uses: actions/checkout@v3
36+
- name: run pdk test unit
37+
run: pdk test unit

0 commit comments

Comments
 (0)