Skip to content

Commit 950b396

Browse files
committed
update CI a bit
1 parent 234f3b2 commit 950b396

1 file changed

Lines changed: 19 additions & 23 deletions

File tree

.github/workflows/test.yml

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
name: Test
22

33
on:
4-
pull_request:
5-
64
push:
7-
branches:
8-
- master
5+
pull_request:
96

107
jobs:
8+
ruby-versions:
9+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
10+
1111
test:
12+
needs: ruby-versions
13+
runs-on: ubuntu-latest
1214
strategy:
1315
fail-fast: false
1416
matrix:
15-
ruby: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, jruby-9.2]
16-
os: [ubuntu-20.04, windows-2022]
17-
include:
18-
- { ruby: 3.1, os: ubuntu-20.04, matrix: pipeline }
19-
20-
runs-on: ${{ matrix.os }}
21-
22-
env:
23-
CI_MATRIX: ${{ matrix.matrix }}
17+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
2418

2519
steps:
26-
- uses: actions/checkout@v3
27-
28-
- name: Set up Ruby
29-
uses: ruby/setup-ruby@v1
30-
with:
31-
ruby-version: ${{ matrix.ruby }}
32-
bundler-cache: true
33-
34-
- name: Test things
35-
run: bundle exec rake test manifest:check
20+
- uses: actions/checkout@v4
21+
22+
- name: Set up Ruby
23+
uses: ruby/setup-ruby-pkgs@v1
24+
with:
25+
ruby-version: ${{ matrix.ruby }}
26+
apt-get: "haveged libyaml-dev"
27+
brew: libyaml
28+
vcpkg: libyaml
29+
30+
- name: Test things
31+
run: bundle exec rake test manifest:check

0 commit comments

Comments
 (0)