-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (50 loc) · 1.15 KB
/
main.yml
File metadata and controls
53 lines (50 loc) · 1.15 KB
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
name: CI
on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: "Ruby ${{ matrix.ruby }} x ActiveRecord ${{ matrix.ar }}"
strategy:
fail-fast: false
matrix:
ruby: ['3.1', '3.2', '3.3', '3.4']
ar:
- '~> 7.1.0'
- '~> 7.2.0'
- '~> 8.0.0'
- 'head'
exclude:
- ruby: '3.1'
ar: 'head'
- ruby: '3.1'
ar: '~> 8.0.0'
env:
AR: ${{ matrix.ar }}
steps:
- uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run test
run: bundle exec rake test
- name: Run rubocop
run: bundle exec rake rubocop
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Run type check
run: rbs collection install && bundle exec steep check