|
1 | 1 | name: CI |
2 | 2 | on: [push] |
3 | 3 | jobs: |
4 | | - build: |
| 4 | + spec: |
5 | 5 | runs-on: ubuntu-latest |
6 | 6 | strategy: |
7 | 7 | matrix: |
8 | 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" |
| 38 | + |
| 39 | + - ruby-version: "2.6" |
| 40 | + puppet-version: "3.8.7" |
| 41 | + - ruby-version: "2.6" |
| 42 | + puppet-version: "4.10.10" |
9 | 43 | steps: |
10 | | - - name: Checkout code |
11 | | - uses: actions/checkout@v1 |
12 | | - - name: Test |
13 | | - run: | |
14 | | - ruby -v |
| 44 | + - name: Checkout code |
| 45 | + uses: actions/checkout@v1 |
| 46 | + - name: bundle |
| 47 | + run: | |
| 48 | + bundle install --jobs 4 --retry 3 |
| 49 | + bundle binstubs puppet rake rspec-core rubocop parallel_tests |
| 50 | + - name: spec |
| 51 | + run: bundle exec rake spec |
15 | 52 | container: |
16 | 53 | image: ruby:${{matrix.ruby-version}} |
| 54 | + rubocop: |
| 55 | + runs-on: ubuntu-latest |
| 56 | + steps: |
| 57 | + - name: Checkout code |
| 58 | + uses: actions/checkout@v1 |
| 59 | + - name: bundle |
| 60 | + run: | |
| 61 | + bundle install --jobs 4 --retry 3 |
| 62 | + bundle binstubs puppet rake rspec-core rubocop parallel_tests |
| 63 | + - name: rubocop |
| 64 | + run: bundle exec rake rubocop |
| 65 | + container: |
| 66 | + image: "ruby:2.6" |
| 67 | + coverage: |
| 68 | + runs-on: ubuntu-latest |
| 69 | + steps: |
| 70 | + - name: Checkout code |
| 71 | + uses: actions/checkout@v1 |
| 72 | + - name: bundle |
| 73 | + run: | |
| 74 | + bundle install --jobs 4 --retry 3 |
| 75 | + bundle binstubs puppet rake rspec-core rubocop parallel_tests |
| 76 | + - name: rubocop |
| 77 | + run: | |
| 78 | + bundle exec rake coverage |
| 79 | + grep -q "100% test coverage. You're all set, friend" coverage/coverage.txt |
| 80 | + container: |
| 81 | + image: "ruby:2.6" |
0 commit comments