-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (51 loc) · 1.48 KB
/
build.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
name: Build (Linter + TypeCheck + RSpec)
on: [push]
jobs:
test-previous:
name: '(OS: ${{ matrix.os }}) Ruby ${{ matrix.ruby_version }}'
strategy:
fail-fast: false
matrix:
ruby_version: ['3.1', '3.2']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
BUNDLE_GEMFILE: github_ci/ruby${{ matrix.ruby_version }}.gemfile
BUNDLE_RETRY: 3
BUNDLE_JOBS: 4
BUNDLE_FORCE_RUBY_PLATFORM: 1
steps:
- uses: actions/checkout@v4
- uses: supercharge/[email protected]
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: (Test) RSpec
run: bundle exec rake rspec
test-mainstream:
name: '(OS: ${{ matrix.os }}) Ruby ${{ matrix.ruby_version }}'
strategy:
fail-fast: false
matrix:
ruby_version: ['3.3']
os: [ubuntu-latest]
env:
BUNDLE_RETRY: 3
BUNDLE_JOBS: 4
BUNDLE_FORCE_RUBY_PLATFORM: 1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: supercharge/[email protected]
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: (Linter) Rubocop
run: bundle exec rake rubocop
- name: (TypeCheck) Steep
run: bundle exec steep check --jobs 10
continue-on-error: true
- name: (Test) RSpec
run: bundle exec rake rspec