Skip to content

Commit 40d7cc5

Browse files
committed
Update GitHub Actions to latest Ruby
1 parent 0a9dfa0 commit 40d7cc5

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

.github/workflows/rubocop.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ name: RuboCop
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
lint:
710
runs-on: ubuntu-latest
811

912
steps:
10-
- uses: actions/checkout@v3
11-
- name: Set up Ruby
12-
uses: ruby/setup-ruby@v1
13-
with:
14-
ruby-version: 3.2
15-
bundler-cache: true # 'bundle install' and cache
16-
- name: Run RuboCop
17-
run: bundle exec rubocop --parallel
13+
- uses: actions/checkout@v4
14+
- name: Set up Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: 3.4
18+
bundler-cache: true # 'bundle install' and cache
19+
- name: Run RuboCop
20+
run: bundle exec rubocop --parallel

.github/workflows/tests.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Tests
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
test:
710
runs-on: ubuntu-latest
@@ -11,16 +14,16 @@ jobs:
1114
matrix:
1215
ruby-version:
1316
- head
14-
- '3.2'
15-
- '3.1'
16-
- '3.0'
17+
- "3.4"
18+
- "3.3"
19+
- "3.2"
1720

1821
steps:
19-
- uses: actions/checkout@v3
20-
- name: Set up Ruby ${{ matrix.ruby-version }}
21-
uses: ruby/setup-ruby@v1
22-
with:
23-
ruby-version: ${{ matrix.ruby-version }}
24-
bundler-cache: true # 'bundle install' and cache
25-
- name: Run tests
26-
run: bundle exec rake
22+
- uses: actions/checkout@v4
23+
- name: Set up Ruby ${{ matrix.ruby-version }}
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: ${{ matrix.ruby-version }}
27+
bundler-cache: true # 'bundle install' and cache
28+
- name: Run tests
29+
run: bundle exec rake

0 commit comments

Comments
 (0)