test: add test suite for version bumping logic

This commit is contained in:
Prad Nukala 2024-09-27 23:19:58 -04:00
parent 80770d5c11
commit a17f5492a5

View File

@ -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: