-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (45 loc) · 1.21 KB
/
ci.yaml
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
name: CI
on:
- push
- pull_request
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Ruby
uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1
with:
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
rspec:
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
strategy:
fail-fast: false
matrix:
## Due to https://github.com/actions/runner/issues/849,
## we have to use quotes for '3.0'
ruby:
# best effort support only
- "2.6"
- "2.7"
# active support
- "3.0"
- "3.1"
- "3.2"
- "3.3"
gemfile:
- gemfiles/faraday_1.gemfile
- gemfiles/faraday_2.gemfile
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Ruby
uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run RSpec
run: bundle exec rspec