From 0355435501c1e15fdb72b8240127b87c8cfcb1b3 Mon Sep 17 00:00:00 2001 From: Giles Westwood Date: Mon, 15 May 2023 12:14:16 +0100 Subject: [PATCH] action tests --- .github/workflows/test.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7d61bc6..6c206e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,24 +38,25 @@ jobs: version_tag_numeric: ${{ steps.version.outputs.version_tag_numeric }} version_tag: ${{ steps.version.outputs.version_tag }} -########################################################################################### - - name: test to see if default patch bumping from the latest git tag of 0.0.1 works - id: version_bumped +########################################################################################## + + - name: specifically set a tag of v2.0.1 but check that the last version is 0.0.1 + id: version_last run: ./version-bump.sh env: - GHA_TAG: latest + GHA_TAG: v2.0.1 - - name: test if 0.0.1 is bumped to 0.0.2 + - name: test to see if the exact tag is returned run: | - if [[ "$version_tag_numeric" == '0.0.2' ]];then + if [[ "$version_last_numeric" == '0.0.1' ]];then echo "winning" else exit 1 fi shell: bash env: - version_tag_numeric: ${{ steps.version_bumped.outputs.version_tag_numeric }} - version_tag: ${{ steps.version_bumped.outputs.version_tag }} + version_last_numeric: ${{ steps.version_last.outputs.version_last_numeric }} + version_last: ${{ steps.version_last.outputs.version_last }} ########################################################################################### - name: test to see if default patch bumping from the latest git tag of 0.0.1 works @@ -76,8 +77,6 @@ jobs: version_tag_numeric: ${{ steps.version_bumped.outputs.version_tag_numeric }} version_tag: ${{ steps.version_bumped.outputs.version_tag }} - - ########################################################################################### - name: make a feat/ branch and merge into main to trigger a minor bump