-
Notifications
You must be signed in to change notification settings - Fork 74
46 lines (44 loc) · 1.16 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
name: Checks
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
schedule:
- cron: '0 6 * * 1' # 6am every Monday
jobs:
unit_tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
rubocop: ['0.90.0', '< 1.0', '1.0.0', '1.29.1', '1.30.0', '1.38.0', '< 2.0']
include:
- ruby: '2.4'
rubocop: '0.90.0'
- ruby: '2.4'
rubocop: '< 1.0'
- ruby: '2.4'
rubocop: '1.0.0'
- ruby: '2.4'
rubocop: '< 2.0'
- ruby: '2.5'
rubocop: '0.90.0'
- ruby: '2.5'
rubocop: '< 1.0'
- ruby: '2.5'
rubocop: '1.0.0'
- ruby: '2.5'
rubocop: '< 2.0'
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: use specific rubocop version
run: echo "gem 'rubocop', '${{ matrix.rubocop }}'" > Gemfile.local
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: rake spec
run: bundle exec rake spec