Merge pull request #901 from puppetlabs/pdksync_github_actions
[puppet-modules/puppetlabs-apt.git] / .github / workflows / release.yml
1 name: "release"
2
3 on: 
4   push:
5     branches:
6       - 'release'
7
8 jobs:
9   LitmusAcceptance:
10     runs-on: self-hosted
11     strategy:
12       matrix:
13         ruby_version: [2.5.x]
14         puppet_gem_version: [~> 6.0]
15         platform: [release_checks]
16         agent_family: ['puppet5', 'puppet6']
17
18     steps:
19     - uses: actions/checkout@v1
20     - name: Litmus Parallel
21       uses: puppetlabs/action-litmus_parallel@master
22       with:
23         platform: ${{ matrix.platform }}
24         agent_family: ${{ matrix.agent_family }}
25   Spec:
26     runs-on: self-hosted
27     strategy:
28       matrix:
29         check: [parallel_spec, 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop']
30         ruby_version: [2.5.x]
31         puppet_gem_version: [~> 5.0, ~> 6.0]
32         exclude:
33         - puppet_gem_version: ~> 5.0
34           check: 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop'
35         - ruby_version: 2.5.x
36           puppet_gem_version: ~> 5.0
37     steps:
38     - uses: actions/checkout@v1
39     - name: Spec Tests
40       uses: puppetlabs/action-litmus_spec@master
41       with:
42         puppet_gem_version: ${{ matrix.puppet_gem_version }}
43         check: ${{ matrix.check }}