-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (54 loc) · 1.25 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test
on:
push:
paths:
- '**.rb'
- '.github/workflows/test.yml'
pull_request:
branches: [master]
paths:
- '**.rb'
- '.github/workflows/test.yml'
schedule:
- cron: '0 5 * * 6'
jobs:
checks:
strategy:
fail-fast: false
matrix:
ruby: ['3.0.0']
runs-on: ubuntu-latest
continue-on-error: false
steps:
- name: Download source
uses: actions/checkout@v4
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Lint code
run: bundle exec rubocop
- name: Check types
run: bundle exec steep check
specs:
strategy:
fail-fast: false
matrix:
ruby: ['3.0.0', ruby, jruby, truffleruby]
experimental: [false]
include:
- ruby: head
experimental: true
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
steps:
- name: Download source
uses: actions/checkout@v4
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec -w