-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (45 loc) · 1.32 KB
/
ci.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
# GitHub Actions notes
# - outcome in step name so we can see it without having to expand logs
# - every step must define a `uses` or `run` key
jobs:
test:
name: >-
${{ matrix.os }} ${{ matrix.ruby }}
env:
TESTOPTS: -v
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
ruby: ['3.0', '3.1']
include:
- { os: ubuntu-20.04 , ruby: ruby-head }
- { os: ubuntu-20.04 , ruby: jruby, allow-failure: true }
- { os: ubuntu-20.04 , ruby: jruby-head }
- { os: ubuntu-20.04 , ruby: truffleruby }
- { os: ubuntu-20.04 , ruby: truffleruby-head, allow-failure: true }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
continue-on-error: ${{ matrix.allow-failure || false }}
id: bundle
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: "setup-ruby and bundle install outcome: ${{ steps.bundle.outcome }}"
run: echo ""
- run: bundle exec rake
continue-on-error: ${{ matrix.allow-failure || false }}
id: test
- name: "bundle exec rake outcome: ${{ steps.test.outcome }}"
run: echo ""