Skip to content

Commit f560a60

Browse files
committed
merge workflows into fewer files
This allows us to set proper dependencies between the jobs
1 parent cfb3d79 commit f560a60

2 files changed

Lines changed: 51 additions & 62 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
permissions:
1212
contents: read
1313

14+
env:
15+
CI: true
16+
1417
jobs:
1518
rubocop_checks:
1619
runs-on: ubuntu-24.04
@@ -27,10 +30,58 @@ jobs:
2730
- run: bundle exec rake rubocop
2831
- run: gem build --strict --verbose *.gemspec
2932

33+
linux_unit_tests:
34+
needs:
35+
- rubocop_checks
36+
name: Ruby version
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
ruby:
41+
- '2.7'
42+
- '3.0'
43+
- '3.2'
44+
- '3.3'
45+
- '3.4'
46+
- '4.0'
47+
- 'jruby-9.4.8.0'
48+
runs-on: ubuntu-24.04
49+
steps:
50+
- name: Checkout current PR
51+
uses: actions/checkout@v4
52+
53+
- name: Rspec checks
54+
uses: ruby/setup-ruby@v1
55+
with:
56+
ruby-version: ${{ matrix.ruby }}
57+
bundler-cache: true
58+
- run: bundle exec rake spec_random
59+
60+
windows_unit_tests:
61+
name: Windows tests with Ruby ${{ matrix.ruby }}
62+
strategy:
63+
matrix:
64+
ruby:
65+
- '2.7'
66+
- '3.2'
67+
runs-on: windows-2025
68+
steps:
69+
- name: Checkout current PR
70+
uses: actions/checkout@v4
71+
72+
- name: Rspec checks
73+
uses: ruby/setup-ruby@v1
74+
with:
75+
ruby-version: ${{ matrix.ruby }}
76+
bundler-cache: true
77+
- run: bundle exec rake spec_random
78+
3079
tests:
3180
if: always()
3281
needs:
3382
- rubocop_checks
83+
- linux_unit_tests
84+
- windows_unit_tests
3485
runs-on: ubuntu-24.04
3586
name: Test suite
3687
steps:

.github/workflows/unit_tests.yaml

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

0 commit comments

Comments
 (0)