-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (40 loc) · 952 Bytes
/
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
name: Test
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
cache-version: 7.0
- name: Rubocop
run: bundle exec rubocop
rspec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
activesupport: ['6.1', '7.0']
rack: ['2.2', '3.0']
ruby: ['3.0', '3.1', '3.2']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cache-version: ${{ matrix.activesupport }}
env:
ACTIVESUPPORT: ${{ matrix.activesupport }}
RACK: ${{ matrix.rack }}
- name: Rspec
run: bundle exec rspec