-
-
Notifications
You must be signed in to change notification settings - Fork 276
55 lines (52 loc) · 1.36 KB
/
main.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
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
confirm_config_and_documentation:
runs-on: ubuntu-latest
name: Confirm config and documentation
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: bundle exec rake confirm_config documentation_syntax_check confirm_documentation
main:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- 2.6
- 2.7
- "3.0"
- "3.1"
- ruby-head
- jruby
task:
- internal_investigation
- spec
rubocop_version:
- gem
include:
- rubocop_version: edge
ruby: 2.7
task: internal_investigation
- rubocop_version: edge
ruby: 2.7
task: spec
name: ${{ matrix.task }}, Ruby ${{ matrix.ruby }} (${{ matrix.rubocop_version }})
steps:
- uses: actions/checkout@v2
- name: Use latest RuboCop from `master`
run: |
echo "gem 'rubocop', github: 'rubocop-hq/rubocop'" > Gemfile.local
if: matrix.rubocop_version == 'edge'
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
bundler-cache: true
- run: bundle exec rake ${{ matrix.task }}