Skip to content

Commit

Permalink
ci: update gh workflows (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: Matteo Rossi <[email protected]>
  • Loading branch information
matteoredz and Matteo Rossi authored Jan 27, 2025
1 parent d642e70 commit 84aa493
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 6 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/conventional-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Conventional Commits PR title

on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

jobs:
conventional-pr-title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
types: |
build
ci
chore
docs
feat
fix
perf
revert
refactor
style
test
requireScope: false
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.5.0
ruby-version: 2.5
- run: bundle install
- run: bundle exec rubocop
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
release-type: ruby
token: ${{secrets.GITHUB_TOKEN}}
version-file: "lib/rack/idempotency_key/version.rb"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{steps.release.outputs.release_created}}
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.7.0
ruby-version: 2.5
if: ${{steps.release.outputs.release_created}}
- run: bundle install
if: ${{steps.release.outputs.release_created}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, head]
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, 3.4, head]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/.byebug_history
/.yardoc
/.ruby-version
/.tool-versions
/coverage/
/doc/
/dump.rdb
Expand Down

0 comments on commit 84aa493

Please sign in to comment.