Skip to content

Commit 35d8dce

Browse files
committed
Modernize workflows a little bit
1 parent 5480d5d commit 35d8dce

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
87
pull_request:
98

109
jobs:
@@ -14,14 +13,16 @@ jobs:
1413
strategy:
1514
matrix:
1615
ruby:
17-
- '3.3.5'
18-
16+
- 3.3
17+
- 3.4
18+
- ruby-head
1919
steps:
20-
- uses: actions/checkout@v4
21-
- name: Set up Ruby
22-
uses: ruby/setup-ruby@v1
20+
- uses: actions/checkout@v6
21+
- uses: ruby/setup-ruby@v1
2322
with:
2423
ruby-version: ${{ matrix.ruby }}
2524
bundler-cache: true
26-
- name: Run the default task
27-
run: bundle exec rake
25+
- run: bundle exec rake
26+
# ensure gem can be built and installed
27+
- run: gem build rubocop-eightyfourcodes
28+
- run: gem install *.gem

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ on:
66
- v*
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
release:
1114
if: github.repository == '84codes/rubocop-eighty-four-codes'
1215
runs-on: ubuntu-latest
1316
permissions:
1417
id-token: write # for trusted publishing
1518
steps:
16-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
1720
- uses: ruby/setup-ruby@v1
1821
with:
1922
bundler-cache: true

0 commit comments

Comments
 (0)