Skip to content

Commit

Permalink
add github actions for pdk validate and pdk test unit
Browse files Browse the repository at this point in the history
  • Loading branch information
tmu-sprd authored and pcfens committed Feb 21, 2023
1 parent 9b75e70 commit 5044e3d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pdk-test-unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run pdk test unit

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Run unit tests
uses: puppets-epic-show-theatre/action-pdk-test-unit@v1
with:
puppet-version: ""
# [optional]
# A string indicating the Puppet version to validate against, such as "5.4.2" or "5.5".
pe-version: ""
# [optional]
# A string indicating the PE version to validate against, such as "2017.3.5" or "2018.1".
22 changes: 22 additions & 0 deletions .github/workflows/pdk-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run pdk static validation

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Run pdk validate
uses: puppets-epic-show-theatre/action-pdk-validate@v1
with:
puppet-version: ""
# [optional]
# A string indicating the Puppet version to validate against, such as "5.4.2" or "5.5".
pe-version: ""
# [optional]
# A string indicating the PE version to validate against, such as "2017.3.5" or "2018.1".

0 comments on commit 5044e3d

Please sign in to comment.