Removed previous tests to rull-out test interference. #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test current branch | |
on: | |
push: | |
secrets: | |
USER: | |
required: true | |
DEPLOY_GITHUB_TOKEN: | |
required: true | |
workflow_call: | |
secrets: | |
USER: | |
required: true | |
DEPLOY_GITHUB_TOKEN: | |
required: true | |
workflow_dispatch: | |
secrets: | |
USER: | |
required: true | |
DEPLOY_GITHUB_TOKEN: | |
required: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.DEPLOY_GITHUB_TOKEN }} | |
- name: Cache local Maven repository | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/*pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Run action (non-branch version, do not enforce) | |
id: run-action-non-branch-version-do-not-enforce | |
uses: maven-flow/manage-versions@main | |
env: | |
USER: ${{ secrets.USER }} | |
TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }} | |
with: | |
enforce-branch-version: false | |
maven-args: "-P github -s ${GITHUB_WORKSPACE}/.github/workflows/maven-settings.xml" | |
pom-file: "non-branch-version-pom.xml" | |
- name: Assert version unchanged | |
run: .github/workflows/assert-project-version.sh non-branch-version-pom.xml 1.1.0-rc.0-SNAPSHOT | |
- name: Assert output parameters | |
run: | | |
if [[ "${{ steps.run-action-non-branch-version-do-not-enforce.outputs.changes-made }}" = "false" ]]; then | |
echo "Output changes-made has correct value." | |
else | |
echo "ERROR: Output changes-made has incorrect value." | |
exit 1 | |
fi |