Skip to content

Commit

Permalink
action tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesw committed May 15, 2023
1 parent 7774684 commit 0355435
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0355435

Please sign in to comment.