Skip to content

Commit

Permalink
ci: trigger lint and test before release (#8)
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 4196edf commit 033aedd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- opened
- reopened
- synchronize
workflow_call:

jobs:
lint:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@ on:
- main

jobs:
lint:
uses: ./.github/workflows/lint.yml
test:
uses: ./.github/workflows/test.yml
secrets:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
release-please:
needs:
- lint
- test
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
Expand All @@ -16,6 +28,20 @@ jobs:
release-type: ruby
token: ${{secrets.GITHUB_TOKEN}}
version-file: "lib/rack/idempotency_key/version.rb"
changelog-types: >
[
{ "type": "build", "section": "Build System", "hidden": false },
{ "type": "ci", "section": "Continuous Integration", "hidden": false },
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false },
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "perf", "section": "Performance Improvements", "hidden": false },
{ "type": "revert", "section": "Reverts", "hidden": false },
{ "type": "refactor", "section": "Code Refactoring", "hidden": false },
{ "type": "style", "section": "Styles", "hidden": false },
{ "type": "test", "section": "Tests", "hidden": false }
]
- uses: actions/checkout@v4
if: ${{steps.release.outputs.release_created}}
- uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit 033aedd

Please sign in to comment.