From a17f5492a5bc638a74b4eeb732b06bf9dac06b76 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Fri, 27 Sep 2024 23:19:58 -0400 Subject: [PATCH] test: add test suite for version bumping logic --- .github/workflows/version-bump.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index 84fbd4efa..d4800d868 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -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: