Skip to content

Commit a490db4

Browse files
committed
ci(workflows): test Ruby 4.0 and tighten lint and release
1 parent b5b3452 commit a490db4

7 files changed

Lines changed: 19 additions & 14 deletions

File tree

‎.github/workflows/dependency-review.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: dependency-review
77
paths:
88
- Gemfile
99
- Gemfile.lock
10-
- transcode.gemspec
10+
- '*.gemspec'
1111
- .github/workflows/dependency-review.yml
1212
permissions:
1313
contents: read

‎.github/workflows/gitleaks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v7.0.1
3131
with:
32-
persist-credentials: false
3332
fetch-depth: 0
33+
persist-credentials: false
3434
- uses: gitleaks/gitleaks-action@v3.0.0
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/pages.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ name: pages
55
'on':
66
push:
77
branches: [master]
8-
paths: [README.adoc, .github/pages/**]
8+
paths:
9+
- README.adoc
10+
- .github/pages/**
11+
- .github/workflows/pages.yml
912
workflow_dispatch:
1013
permissions:
1114
contents: read

‎.github/workflows/rake.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ jobs:
3535
- windows-2022
3636
- windows-2025
3737
ruby:
38-
- 3.2
39-
- 3.3
40-
- 3.4
38+
- '3.2'
39+
- '3.3'
40+
- '3.4'
41+
- '4.0'
4142
include:
4243
- os: ubuntu-24.04
4344
ruby: head

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ jobs:
2323
persist-credentials: false
2424
- uses: ruby/setup-ruby@v1.336.0
2525
with:
26-
ruby-version: '3.4'
26+
ruby-version: '4.0'
2727
- name: Verify the tag matches the gem version
2828
run: |
2929
ver="$(ruby -Ilib -rtranscode/version -e 'puts Transcode::VERSION')"
3030
test "$ver" = "$GITHUB_REF_NAME"
31+
- run: |
32+
bundle install
33+
bundle exec rake
3134
- uses: rubygems/configure-rubygems-credentials@v2.1.0
3235
- run: gem build transcode.gemspec
3336
- run: gem push "transcode-$GITHUB_REF_NAME.gem"

‎.github/workflows/rubocop.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#
44
# The pull-requests:write permission below is scoped to the rubocop job
55
# alone (not the workflow default) so that reviewdog can post inline
6-
# review comments on the triggering pull request.
6+
# review comments on the triggering pull request. The github-pr-review
7+
# reporter replaces the default github-pr-check one for the same reason.
78
---
89
name: rubocop
910
'on':
@@ -41,10 +42,10 @@ jobs:
4142
persist-credentials: false
4243
- uses: ruby/setup-ruby@v1.336.0
4344
with:
44-
ruby-version: 3.2
45+
ruby-version: '3.2'
4546
bundler-cache: true
4647
- uses: reviewdog/action-rubocop@v2.22.0
4748
with:
48-
reporter: github-pr-review # Default is github-pr-check
49+
reporter: github-pr-review
4950
skip_install: true
5051
use_bundler: true

‎.github/workflows/yamllint.yml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,5 @@ jobs:
2727
persist-credentials: false
2828
- uses: ibiqlik/action-yamllint@v3.1.1
2929
with:
30-
file_or_dir: >
31-
./.github/*.yml
32-
./.github/workflows/*.yml
33-
./.rubocop.yml
30+
file_or_dir: .
3431
strict: true

0 commit comments

Comments
 (0)