10000 Merge branch 'main' of https://github.com/luke-engle/octokit.rb · octokit/octokit.rb@08d1ed0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 08d1ed0

Browse files
committed
2 parents 311ce8b + 7175acb commit 08d1ed0

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

.github/workflows/octokit.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,40 @@
11
name: CI
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
- '*'
8-
pull_request:
9-
branches:
10-
- main
11-
2+
"on":
3+
push:
4+
branches:
5+
- main
6+
- "*"
7+
pull_request:
8+
branches:
9+
- main
1210
jobs:
1311
ci:
1412
name: Ruby ${{ matrix.ruby }}
1513
runs-on: ${{ matrix.os }}-latest
16-
1714
strategy:
1815
fail-fast: false
1916
matrix:
20-
os: [ ubuntu ]
21-
ruby: [ 2.7, '3.0', '3.1', head ]
22-
faraday: [ '~> 1.0', '~> 2.0' ]
17+
os:
18+
- ubuntu
19+
ruby:
20+
- 2.7
21+
- "3.0"
22+
- "3.1"
23+
- head
24+
faraday:
25+
- ~> 1.0
26+
- ~> 2.0
2327
env:
2428
FARADAY_VERSION: ${{ matrix.faraday }}
25-
2629
steps:
27-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
2831
- name: Cache Ruby dependencies
2932
uses: actions/cache@v3
3033
with:
3134
path: ./.bundle/gems
32-
key: cache-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.faraday }}-${{ github.sha }}
35+
key: >-
36+
cache-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.faraday }}-${{
37+
github.sha }}
3338
restore-keys: |
3439
cache-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.faraday }}-
3540
- name: Set up Ruby
@@ -46,7 +51,7 @@ jobs:
4651
- name: Test with RSpec with frozen string literals enabled
4752
env:
4853
GITHUB_CI: 1
49-
RUBYOPT: --enable-frozen-string-literal
54+
RUBYOPT: "--enable-frozen-string-literal"
5055
run: bundle exec rspec -w
5156
- name: Lint with Rubocop
5257
env:

0 commit comments

Comments
 (0)
0