Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
trefzer committed Dec 7, 2024
1 parent 8f5e9fd commit 6f4310f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [cirrax]
custom: ["https://cirrax.com"]
37 changes: 37 additions & 0 deletions .github/workflows/pdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 6f4310f

Please sign in to comment.