mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
test: add test suite for version bumping logic
This commit is contained in:
parent
80770d5c11
commit
a17f5492a5
15
.github/workflows/version-bump.yml
vendored
15
.github/workflows/version-bump.yml
vendored
@ -10,10 +10,9 @@ permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
bump-version:
|
||||
if: "!startsWith(github.event.head_commit.message, 'bump:')"
|
||||
run-tests:
|
||||
runs-on: ubuntu-latest
|
||||
name: "Bump version and create changelog with commitizen"
|
||||
name: "Run tests"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@ -28,6 +27,16 @@ jobs:
|
||||
- name: Run tests
|
||||
run: make test
|
||||
|
||||
bump-version:
|
||||
if: "!startsWith(github.event.head_commit.message, 'bump:')"
|
||||
runs-on: ubuntu-latest
|
||||
name: "Bump Version"
|
||||
needs: run-tests
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fetch-depth: 0
|
||||
- name: Create bump and changelog
|
||||
uses: commitizen-tools/commitizen-action@master
|
||||
with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user