-
Notifications
You must be signed in to change notification settings - Fork 497
30 lines (28 loc) · 1.01 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: test
on:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # run all tests so we see which gem/ruby combinations break
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', head, jruby-head]
os: [ubuntu-latest, windows-latest]
task: [spec]
include:
- ruby: '2.7' # lowest supported version, same as gemspec and .rubocop.yml
os: ubuntu-latest
task: rubocop
steps:
- uses: actions/checkout@master
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: rake ${{ matrix.task }}
# allow ruby/jruby-head to fail since they are moving targets
# TODO: this will always show green, fix once https://github.com/actions/toolkit/issues/399 is resolved
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
run: bundle exec rake ${{ matrix.task }}