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 276555d commit 77ff0d3
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 @@ -58,6 +58,15 @@ jobs:
- name: Assert dependency version unchanged
run: .github/workflows/assert-dependency-version.sh non-branch-version-pom.xml com.jardoapps.maven-flow dummy-dependency 1.1.0-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
- name: Run action (branch version)
id: run-action-branch-version
uses: maven-flow/manage-versions@main
Expand All @@ -74,3 +83,12 @@ jobs:

- name: Assert dependency version changed
run: .github/workflows/assert-dependency-version.sh branch-version-pom.xml com.jardoapps.maven-flow dummy-dependency 1.1.0-SNAPSHOT

- name: Assert output parameters
run: |
if [[ "${{ steps.run-action-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

0 comments on commit 77ff0d3

Please sign in to comment.