-
Notifications
You must be signed in to change notification settings - Fork 1.1k
61 lines (61 loc) · 1.52 KB
/
octokit.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
56
57
58
59
60
61
name: CI
"on":
push:
branches:
- main
- "*"
pull_request:
branches:
- main
jobs:
ci:
name: Ruby ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
- head
faraday:
- ~> 1.0
- ~> 2.0
env:
FARADAY_VERSION: ${{ matrix.faraday }}
steps:
- uses: actions/checkout@v4
- name: Cache Ruby dependencies
uses: actions/cache@v4
with:
path: ./.bundle/gems
key: >-
cache-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.faraday }}-${{
github.sha }}
restore-keys: |
cache-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.faraday }}-
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Setup .netrc
run: chmod 600 spec/fixtures/.netrc
- name: Install dependencies
run: |
bundle config set path .bundle/gems
bundle config set without development
bundle install --jobs 4 --retry 3
- name: Test with RSpec with frozen string literals enabled
env:
GITHUB_CI: 1
RUBYOPT: "--enable-frozen-string-literal"
run: bundle exec rspec-queue -w
- name: Lint with Rubocop
env:
GITHUB_CI: 1
run: bundle exec rubocop