File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ # This is a basic workflow to help you get started with Actions
2+
3+ name : PDK basic
4+
5+ # Controls when the workflow will run
6+ on :
7+ workflow_call :
8+
9+
10+ env :
11+ GITHUB_USER : ${{ secrets.PUPPET_REPO_USER }}
12+ GITHUB_TOKEN : ${{ secrets.PUPPET_REPO_USER_TOKEN }}
13+
14+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+ jobs :
16+ # This workflow contains a single job called "build"
17+ validate :
18+ # The type of runner that the job will run on
19+ runs-on : ubuntu-latest
20+ strategy :
21+ matrix :
22+ puppet-version : [5, 6, 7]
23+ container : puppet/puppet-dev-tools:2022-03-28-92c7176
24+
25+ # Steps represent a sequence of tasks that will be executed as part of the job
26+ steps :
27+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28+ - uses : actions/checkout@v2
29+
30+ - name : action-pdk-validate-puppet-${{ matrix.puppet-version }}
31+ run : pdk validate --puppet-version=${{ matrix.puppet-version }}
32+ # Runs pdk test unit
33+
34+ unit-puppet :
35+ runs-on : ubuntu-latest
36+ strategy :
37+ matrix :
38+ puppet-version : [5, 6, 7]
39+ container : puppet/puppet-dev-tools:2022-03-28-92c7176
40+ needs : validate
41+ # Steps represent a sequence of tasks that will be executed as part of the job
42+ steps :
43+ - uses : actions/checkout@v2
44+
45+ - name : action-pdk-test-unit-puppet-${{ matrix.puppet-version }}
46+ run : pdk test unit --puppet-version=${{ matrix.puppet-version }}
You can’t perform that action at this time.
0 commit comments