Skip to content

Commit dbbc0c0

Browse files
committed
Update github actions. Add ruby 3.2.0 to test matrix, use latest OS versions.
1 parent a793bf9 commit dbbc0c0

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.github/workflows/mri.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
48

59
jobs:
610
build:
@@ -16,26 +20,20 @@ jobs:
1620
strategy:
1721
fail-fast: false
1822
matrix:
19-
os: [ ubuntu-20.04, ubuntu-18.04, macos-11, windows-2022 ]
20-
ruby: [ 3.1, '3.0', 2.7 ]
21-
23+
os: [ubuntu-latest, macos-latest, windows-latest]
24+
ruby: ['2.7', '3.0', '3.1', '3.2']
2225
steps:
23-
- name: repo checkout
24-
uses: actions/checkout@v2
25-
26-
- name: load ruby
27-
uses: MSP-Greg/setup-ruby-pkgs@v1
26+
- uses: actions/checkout@v3
27+
- name: Set up Ruby
28+
uses: ruby/setup-ruby@v1
2829
with:
2930
ruby-version: ${{ matrix.ruby }}
3031
apt-get: libxml2-dev
3132
# brew: libxml2
3233
mingw: libxml2
33-
bundler-cache: true
34-
timeout-minutes: 10
35-
36-
- name: compile
37-
run: bundle exec rake compile
38-
39-
- name: test
34+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
4035
timeout-minutes: 10
36+
- name: Build
37+
run: bundle exec rake compile
38+
- name: Test
4139
run: bundle exec rake test

0 commit comments

Comments
 (0)