Skip to content

Commit

Permalink
Added output parameter assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jardo-51 committed May 5, 2024
1 parent 5bbcbdd commit 9c20f89
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test-current-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ jobs:
- name: Assert version changed
run: .github/workflows/assert-project-version.sh non-branch-version-pom.xml 1.1.0-rc.0-bugfix-BUG-458-SNAPSHOT

- name: Assert output parameters
run: |
if [[ "${{ steps.run-action-non-branch-version.outputs.changes-made }}" = "true" ]]; then
echo "Output changes-made has correct value."
else
echo "ERROR: Output changes-made has incorrect value."
exit 1
fi
- name: Run action (branch version)
id: run-action-branch-version
uses: maven-flow/manage-versions@main
Expand All @@ -71,3 +80,12 @@ jobs:

- name: Assert dependency version unchanged
run: .github/workflows/assert-dependency-version.sh branch-version-pom.xml com.jardoapps.maven-flow dummy-dependency 1.1.0-rc.0-BUG-458-SNAPSHOT

- name: Assert output parameters
run: |
if [[ "${{ steps.run-action-non-branch-version.outputs.changes-made }}" = "false" ]]; then
echo "Output changes-made has correct value."
else
echo "ERROR: Output changes-made has incorrect value."
exit 1
fi

0 comments on commit 9c20f89

Please sign in to comment.