Skip to content

Commit bcc7874

Browse files
authored
Merge pull request #157 from bastelfreak/ci4
CI: add dummy job we can depend on as required check
2 parents 72de326 + cb91ead commit bcc7874

File tree

2 files changed

+38
-39
lines changed

2 files changed

+38
-39
lines changed

.github/workflows/checks.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/rspec_tests.yaml renamed to .github/workflows/tests.yaml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,32 @@ on:
1010
permissions:
1111
contents: read
1212

13+
env:
14+
BUNDLE_SET: "without packaging documentation release"
15+
1316
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+
1439
rspec_tests:
1540
name: ${{ matrix.cfg.os }}(ruby ${{ matrix.cfg.ruby }})
1641
strategy:
@@ -27,8 +52,6 @@ jobs:
2752
- {os: windows-2025, ruby: '3.4'} # openssl 3
2853

2954
runs-on: ${{ matrix.cfg.os }}
30-
env:
31-
BUNDLE_SET: "without packaging documentation"
3255
steps:
3356
- name: Checkout current PR
3457
uses: actions/checkout@v4
@@ -85,3 +108,16 @@ jobs:
85108
fi
86109
87110
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

Comments
 (0)