-
-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (37 loc) · 910 Bytes
/
test.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
name: Test
on:
push:
branches:
- master
pull_request:
schedule:
- cron: "10 4 * * */2"
jobs:
test:
runs-on: ubuntu-latest
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
strategy:
fail-fast: false
matrix:
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", ruby-head, jruby]
rubocop_version: [""]
include:
- ruby: "2.6"
rubocop_version: "'1.45.0'"
- ruby: "3.3"
rubocop_version: "github: 'rubocop/rubocop'"
steps:
- uses: actions/checkout@v4
- name: Set up RuboCop version overwrite
if: ${{ matrix.rubocop_version != '' }}
run: |
echo "gem 'rubocop', ${{ matrix.rubocop_version }}" > Gemfile.local
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: |
bundle exec rake test