-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds basic workflow for pdk based modules
- Loading branch information
1 parent
238b8d0
commit 429089a
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: PDK basic | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
container_image: | ||
description: Image to use when running tests | ||
default: 'puppet/puppet-dev-tools:2022-04-21-e44b72b' | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
puppet-version: [7] | ||
container: ${{ inputs.container_image }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: action-pdk-validate-puppet-${{ matrix.puppet-version }} | ||
run: pdk validate --puppet-version=${{ matrix.puppet-version }} | ||
|
||
unit-puppet: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
puppet-version: [5, 6, 7] | ||
container: ${{ inputs.container_image }} | ||
needs: validate | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: action-pdk-test-unit-puppet-${{ matrix.puppet-version }} | ||
run: pdk test unit --puppet-version=${{ matrix.puppet-version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters