mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +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
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bump-version:
|
run-tests:
|
||||||
if: "!startsWith(github.event.head_commit.message, 'bump:')"
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: "Bump version and create changelog with commitizen"
|
name: "Run tests"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -28,6 +27,16 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make test
|
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
|
- name: Create bump and changelog
|
||||||
uses: commitizen-tools/commitizen-action@master
|
uses: commitizen-tools/commitizen-action@master
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user