|
1 | 1 | name: CI |
2 | 2 | on: [push] |
3 | 3 | jobs: |
4 | | - spec: |
| 4 | + puppet-3.8.7: |
5 | 5 | runs-on: ubuntu-latest |
6 | 6 | strategy: |
7 | 7 | matrix: |
8 | | - ruby-version: ["2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6"] |
9 | | - puppet-version: ["3.8.7", "4.10.10", "5.5.8"] |
10 | | - exclude: |
11 | | - - ruby-version: "2.0" |
12 | | - puppet-version: "4.10.10" |
13 | | - - ruby-version: "2.0" |
14 | | - puppet-version: "5.5.8" |
15 | | - |
16 | | - - ruby-version: "2.1" |
17 | | - puppet-version: "5.5.8" |
18 | | - |
19 | | - - ruby-version: "2.2" |
20 | | - puppet-version: "3.8.7" |
21 | | - - ruby-version: "2.2" |
22 | | - puppet-version: "5.5.8" |
23 | | - |
24 | | - - ruby-version: "2.3" |
25 | | - puppet-version: "3.8.7" |
26 | | - - ruby-version: "2.3" |
27 | | - puppet-version: "5.5.8" |
28 | | - |
29 | | - - ruby-version: "2.4" |
30 | | - puppet-version: "3.8.7" |
31 | | - - ruby-version: "2.4" |
32 | | - puppet-version: "4.10.10" |
33 | | - |
34 | | - - ruby-version: "2.5" |
35 | | - puppet-version: "3.8.7" |
36 | | - - ruby-version: "2.5" |
37 | | - puppet-version: "4.10.10" |
| 8 | + ruby-version: ["2.0", "2.1"] |
| 9 | + steps: |
| 10 | + - name: Checkout code |
| 11 | + uses: actions/checkout@v1 |
| 12 | + - name: bundle |
| 13 | + run: | |
| 14 | + sudo apt-get install cmake |
| 15 | + bundle install --jobs 4 --retry 3 |
| 16 | + bundle binstubs puppet rake rspec-core rubocop parallel_tests |
| 17 | + - name: rspec |
| 18 | + run: bundle exec rake spec |
| 19 | + container: |
| 20 | + image: ruby:${{matrix.ruby-version}} |
| 21 | + env: |
| 22 | + PUPPET_VERSION: "3.8.7" |
38 | 23 |
|
39 | | - - ruby-version: "2.6" |
40 | | - puppet-version: "3.8.7" |
41 | | - - ruby-version: "2.6" |
42 | | - puppet-version: "4.10.10" |
| 24 | + puppet-4.10.10: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + strategy: |
| 27 | + matrix: |
| 28 | + ruby-version: ["2.1", "2.2", "2.3"] |
43 | 29 | steps: |
44 | 30 | - name: Checkout code |
45 | 31 | uses: actions/checkout@v1 |
46 | 32 | - name: bundle |
47 | 33 | run: | |
| 34 | + sudo apt-get install cmake |
48 | 35 | bundle install --jobs 4 --retry 3 |
49 | 36 | bundle binstubs puppet rake rspec-core rubocop parallel_tests |
50 | 37 | - name: spec |
| 38 | + run: bundle exec rake rspec |
| 39 | + container: |
| 40 | + image: ruby:${{matrix.ruby-version}} |
| 41 | + env: |
| 42 | + PUPPET_VERSION: "4.10.10" |
| 43 | + |
| 44 | + puppet-5.5.8: |
| 45 | + runs-on: ubuntu-latest |
| 46 | + strategy: |
| 47 | + matrix: |
| 48 | + ruby-version: ["2.4", "2.5", "2.6"] |
| 49 | + steps: |
| 50 | + - name: Checkout code |
| 51 | + uses: actions/checkout@v1 |
| 52 | + - name: bundle |
| 53 | + run: | |
| 54 | + sudo apt-get install cmake |
| 55 | + bundle install --jobs 4 --retry 3 |
| 56 | + bundle binstubs puppet rake rspec-core rubocop parallel_tests |
| 57 | + - name: rspec |
51 | 58 | run: bundle exec rake spec |
52 | 59 | container: |
53 | 60 | image: ruby:${{matrix.ruby-version}} |
| 61 | + env: |
| 62 | + PUPPET_VERSION: "5.5.8" |
| 63 | + |
54 | 64 | rubocop: |
55 | 65 | runs-on: ubuntu-latest |
56 | 66 | steps: |
57 | 67 | - name: Checkout code |
58 | 68 | uses: actions/checkout@v1 |
59 | 69 | - name: bundle |
60 | 70 | run: | |
| 71 | + sudo apt-get install cmake |
61 | 72 | bundle install --jobs 4 --retry 3 |
62 | 73 | bundle binstubs puppet rake rspec-core rubocop parallel_tests |
63 | 74 | - name: rubocop |
64 | 75 | run: bundle exec rake rubocop |
65 | 76 | container: |
66 | 77 | image: "ruby:2.6" |
| 78 | + env: |
| 79 | + PUPPET_VERSION: "5.5.8" |
| 80 | + |
67 | 81 | coverage: |
68 | 82 | runs-on: ubuntu-latest |
69 | 83 | steps: |
70 | 84 | - name: Checkout code |
71 | 85 | uses: actions/checkout@v1 |
72 | 86 | - name: bundle |
73 | 87 | run: | |
| 88 | + sudo apt-get install cmake |
74 | 89 | bundle install --jobs 4 --retry 3 |
75 | 90 | bundle binstubs puppet rake rspec-core rubocop parallel_tests |
76 | 91 | - name: rubocop |
|
79 | 94 | grep -q "100% test coverage. You're all set, friend" coverage/coverage.txt |
80 | 95 | container: |
81 | 96 | image: "ruby:2.6" |
| 97 | + env: |
| 98 | + PUPPET_VERSION: "5.5.8" |
0 commit comments