|
| 1 | +--- |
| 2 | +# Managed by modulesync - DO NOT EDIT |
| 3 | +# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ |
| 4 | + |
1 | 5 | name: CI |
2 | 6 |
|
3 | 7 | on: pull_request |
4 | 8 |
|
5 | | -jobs: |
6 | | - setup_matrix: |
7 | | - name: 'Setup Test Matrix' |
8 | | - runs-on: ubuntu-latest |
9 | | - timeout-minutes: 40 |
10 | | - outputs: |
11 | | - beaker_setfiles: ${{ steps.get-outputs.outputs.beaker_setfiles }} |
12 | | - puppet_major_versions: ${{ steps.get-outputs.outputs.puppet_major_versions }} |
13 | | - puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }} |
14 | | - env: |
15 | | - BUNDLE_WITHOUT: development:release |
16 | | - steps: |
17 | | - - uses: actions/checkout@v2 |
18 | | - - name: Setup ruby |
19 | | - uses: ruby/setup-ruby@v1 |
20 | | - with: |
21 | | - ruby-version: '2.7' |
22 | | - bundler-cache: true |
23 | | - - name: Run rake validate |
24 | | - run: bundle exec rake validate |
25 | | - - name: Run rake rubocop |
26 | | - run: bundle exec rake rubocop |
27 | | - - name: Setup Test Matrix |
28 | | - id: get-outputs |
29 | | - run: bundle exec metadata2gha --use-fqdn --pidfile-workaround false |
30 | | - |
31 | | - unit: |
32 | | - needs: setup_matrix |
33 | | - runs-on: ubuntu-latest |
34 | | - timeout-minutes: 40 |
35 | | - strategy: |
36 | | - fail-fast: false |
37 | | - matrix: |
38 | | - include: ${{fromJson(needs.setup_matrix.outputs.puppet_unit_test_matrix)}} |
39 | | - env: |
40 | | - BUNDLE_WITHOUT: development:system_tests:release |
41 | | - PUPPET_VERSION: "~> ${{ matrix.puppet }}.0" |
42 | | - name: Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }}) |
43 | | - steps: |
44 | | - - uses: actions/checkout@v2 |
45 | | - - name: Setup ruby |
46 | | - uses: ruby/setup-ruby@v1 |
47 | | - with: |
48 | | - ruby-version: ${{ matrix.ruby }} |
49 | | - bundler-cache: true |
50 | | - - name: Run tests |
51 | | - run: bundle exec rake |
| 9 | +concurrency: |
| 10 | + group: ${{ github.ref_name }} |
| 11 | + cancel-in-progress: true |
52 | 12 |
|
53 | | - acceptance: |
54 | | - needs: setup_matrix |
55 | | - runs-on: ubuntu-latest |
56 | | - env: |
57 | | - BUNDLE_WITHOUT: development:test:release |
58 | | - strategy: |
59 | | - fail-fast: false |
60 | | - matrix: |
61 | | - setfile: ${{fromJson(needs.setup_matrix.outputs.beaker_setfiles)}} |
62 | | - puppet: ${{fromJson(needs.setup_matrix.outputs.puppet_major_versions)}} |
63 | | - name: ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }} |
64 | | - steps: |
65 | | - - uses: actions/checkout@v2 |
66 | | - - name: Setup ruby |
67 | | - uses: ruby/setup-ruby@v1 |
68 | | - with: |
69 | | - ruby-version: '2.7' |
70 | | - bundler-cache: true |
71 | | - - name: Run tests |
72 | | - run: bundle exec rake beaker |
73 | | - env: |
74 | | - BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet.collection }} |
75 | | - BEAKER_setfile: ${{ matrix.setfile.value }} |
| 13 | +jobs: |
| 14 | + puppet: |
| 15 | + name: Puppet |
| 16 | + uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v1 |
| 17 | + with: |
| 18 | + pidfile_workaround: 'false' |
0 commit comments