-
-
Notifications
You must be signed in to change notification settings - Fork 0
116 lines (100 loc) · 2.58 KB
/
checks.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: Checks
on:
push:
branches:
- main
- "*-stable"
pull_request:
jobs:
test:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
ruby-version:
- "3.2"
- "3.3"
rails-version:
- "~> 7.0.0"
- "~> 7.1.0"
- "~> 7.2.0"
- "~> 8.0.0"
addressable-version:
- "~> 2.4.0"
- "~> 2.5.0"
- "~> 2.6.0"
- "~> 2.7.0"
- "~> 2.8.0"
runs-on: ubuntu-latest
env:
# Ignore `Gemfile.lock` on CI.
BUNDLE_GEMFILE: ${{ github.workspace }}/Gemfile.ci
RAILS_VERSION: ${{ matrix.rails-version }}
ADDRESSABLE_VERSION: ${{ matrix.addressable-version }}
name: >-
Test --
Ruby ${{ matrix.ruby-version }} &&
Rails ${{ matrix.rails-version }} &&
Addressable ${{ matrix.addressable-version }}
steps:
- uses: actions/checkout@v4
# https://github.com/ruby/setup-ruby
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Setup DB
run: bin/rails db:migrate
timeout-minutes: 5
- name: RSpec
run: bundle exec rake spec
timeout-minutes: 5
lint:
timeout-minutes: 10
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v4
# https://github.com/ruby/setup-ruby
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- name: RuboCop
run: bundle exec rake rubocop
timeout-minutes: 5
typecheck:
timeout-minutes: 10
runs-on: ubuntu-latest
name: Typecheck
steps:
- uses: actions/checkout@v4
# https://github.com/ruby/setup-ruby
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- name: Prepare for typecheck
run: bundle exec rake steep:prepare
timeout-minutes: 5
- name: Run typecheck
run: bundle exec rake steep:check
timeout-minutes: 5
documentation-check:
timeout-minutes: 10
runs-on: ubuntu-latest
name: Documentation syntax check
steps:
- uses: actions/checkout@v4
# https://github.com/ruby/setup-ruby
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- name: Check YARD docs
run: bundle exec rake yard:check
timeout-minutes: 5