From 408fcaa11262678d7871950c1728cc1056bf71ee Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Tue, 5 Mar 2024 11:16:44 +0100 Subject: [PATCH] Fix nightly builds (#174) * chore(pro-extension-test.yml): update descriptions to use double quotes for consistency chore(pro-extension-test.yml): update MAVEN_VERSION value to use double quotes chore(pro-extension-test.yml): update distribution and cache values to use double quotes chore(pro-extension-test.yml): update if conditions to use double quotes chore(pro-extension-test.yml): update SLACK_MESSAGE and SLACK_TITLE to use double quotes chore(pro-extension-test.yml): update SLACK_ICON_EMOJI and SLACK_FOOTER to use double quotes feat(pro-extension-test.yml): add support for running tests with liquibase master-SNAPSHOT version when nightly flag is set * chore(os-extension-test.yml): update descriptions in workflow inputs to use double quotes for consistency chore(os-extension-test.yml): update Maven version environment variable to use double quotes chore(os-extension-test.yml): update setup-java and setup-maven actions to use double quotes for distribution and cache chore(os-extension-test.yml): update Slack notification messages to use double quotes for consistency chore(os-extension-test.yml): update setup-java and setup-maven actions in matrix to use double quotes for distribution and cache * chore(os-extension-test.yml): update liquibase version parameter to be enclosed in quotes for consistency and to prevent potential issues with special characters. * chore(pro-extension-test.yml): wrap liquibase version argument in quotes to ensure proper parsing and prevent issues with special characters * chore(os-extension-test.yml): add maven settings for Liquibase repositories to enable access to Liquibase and Liquibase Pro artifacts --- .github/workflows/os-extension-test.yml | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/.github/workflows/os-extension-test.yml b/.github/workflows/os-extension-test.yml index 78cc15f4..a9787692 100644 --- a/.github/workflows/os-extension-test.yml +++ b/.github/workflows/os-extension-test.yml @@ -165,6 +165,49 @@ jobs: with: maven-version: ${{ env.MAVEN_VERSION }} + # look for dependencies in maven + - name: maven-settings-xml-action + uses: whelk-io/maven-settings-xml-action@v21 + with: + repositories: | + [ + { + "id": "liquibase", + "url": "https://maven.pkg.github.com/liquibase/liquibase", + "releases": { + "enabled": "true" + }, + "snapshots": { + "enabled": "true", + "updatePolicy": "always" + } + }, + { + "id": "liquibase-pro", + "url": "https://maven.pkg.github.com/liquibase/liquibase-pro", + "releases": { + "enabled": "true" + }, + "snapshots": { + "enabled": "true", + "updatePolicy": "always" + } + } + ] + servers: | + [ + { + "id": "liquibase-pro", + "username": "liquibot", + "password": "${{ secrets.LIQUIBOT_PAT }}" + }, + { + "id": "liquibase", + "username": "liquibot", + "password": "${{ secrets.LIQUIBOT_PAT }}" + } + ] + - uses: actions/download-artifact@v3 with: name: ${{needs.build.outputs.artifact_id}}-artifacts