-
Notifications
You must be signed in to change notification settings - Fork 111
37 lines (34 loc) · 888 Bytes
/
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
name: CI
on: [push, pull_request]
env:
SRB_SKIP_GEM_RBIS: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [ 2.6, 2.7, 3.0, 'head' ]
bundler: [ 2.2.25 ]
include:
- ruby: 2.6
bundler: 2.2.22
name: Test Ruby ${{ matrix.ruby }}, Bundler ${{ matrix.bundler }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: ${{ matrix.bundler }}
bundler-cache: true
- name: Run type check
run: bin/typecheck
- name: Lint Ruby files
run: bin/style --config .rubocop.yml
- name: Verify documentation
run: bin/docs
- name: Run tests
env:
BUNDLER_VERSION: ${{matrix.bundler}}
run: bin/test