|
10 | 10 | permissions: |
11 | 11 | contents: read |
12 | 12 |
|
| 13 | +env: |
| 14 | + BUNDLE_SET: "without packaging documentation release" |
| 15 | + |
13 | 16 | jobs: |
| 17 | + checks: |
| 18 | + name: ${{ matrix.cfg.check }} |
| 19 | + strategy: |
| 20 | + matrix: |
| 21 | + cfg: |
| 22 | + - {check: rubocop, os: ubuntu-latest, ruby: '3.1'} |
| 23 | + - {check: warnings, os: ubuntu-latest, ruby: '3.1'} |
| 24 | + |
| 25 | + runs-on: ${{ matrix.cfg.os }} |
| 26 | + steps: |
| 27 | + - name: Checkout current PR |
| 28 | + uses: actions/checkout@v4 |
| 29 | + |
| 30 | + - name: Install ruby version ${{ matrix.cfg.ruby }} |
| 31 | + uses: ruby/setup-ruby@v1 |
| 32 | + with: |
| 33 | + ruby-version: ${{ matrix.cfg.ruby }} |
| 34 | + bundler-cache: true |
| 35 | + |
| 36 | + - name: Run ${{ matrix.cfg.check }} check |
| 37 | + run: bundle exec rake ${{ matrix.cfg.check }} |
| 38 | + |
14 | 39 | rspec_tests: |
15 | 40 | name: ${{ matrix.cfg.os }}(ruby ${{ matrix.cfg.ruby }}) |
16 | 41 | strategy: |
|
27 | 52 | - {os: windows-2025, ruby: '3.4'} # openssl 3 |
28 | 53 |
|
29 | 54 | runs-on: ${{ matrix.cfg.os }} |
30 | | - env: |
31 | | - BUNDLE_SET: "without packaging documentation" |
32 | 55 | steps: |
33 | 56 | - name: Checkout current PR |
34 | 57 | uses: actions/checkout@v4 |
@@ -85,3 +108,16 @@ jobs: |
85 | 108 | fi |
86 | 109 |
|
87 | 110 | bundle exec rake parallel:spec |
| 111 | +
|
| 112 | + tests: |
| 113 | + if: always() |
| 114 | + needs: |
| 115 | + - checks |
| 116 | + - rspec_tests |
| 117 | + runs-on: ubuntu-24.04 |
| 118 | + name: Test suite |
| 119 | + steps: |
| 120 | + - name: Decide whether the needed jobs succeeded or failed |
| 121 | + uses: re-actors/alls-green@release/v1 |
| 122 | + with: |
| 123 | + jobs: ${{ toJSON(needs) }} |
0 commit comments