Skip to content

Commit

Permalink
trying to add snapshot version of liquibase to the test harness
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloTytarchuk committed Aug 9, 2024
1 parent 680bf4f commit 36f93d5
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,18 @@ jobs:
}
]
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Install Snapshot Liquibase
if: steps.configure-build.outputs.useLiquibaseSnapshot == 'true'
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.INSTALL_SNAPSHOT_LIQUIBASE }}
run: |
mvn -B versions:set-property -Djava.util.Arrays.useLegacyMergeSort=true -Dproperty=liquibase-core.version -DnewVersion=0-SNAPSHOT
mvn -B versions:set-property -Dproperty=liquibase-core.version -DnewVersion=0-SNAPSHOT
mvn -B liquibase-sdk:install-snapshot \
"-Dliquibase.sdk.branchSearch=${{ steps.configure-build.outputs.liquibaseBranch }},master,main" \
"-Dliquibase.sdk.repo=liquibase/liquibase,liquibase/liquibase-pro"
Expand All @@ -180,6 +186,16 @@ jobs:
"-Dliquibase.sdk.status.url=https://github.com/liquibase/liquibase-test-harness/actions/runs/${{ github.run_id }}" \
"-Dliquibase.sdk.status.description=Internal functional tests" \
"-Dliquibase.sdk.status.commit=installed"
chmod -R 777 bin
ls -l ./bin
bin/liquibase --version
buildOverview="$(mvn -B -q liquibase-sdk:get-build-info '-Dliquibase.sdk.buildInfo.outputKey=overview' '-Dliquibase.sdk.repo=liquibase/liquibase')"
echo "::notice :: Installed Snapshot Liquibase $buildOverview"
buildOverview="$(mvn -B -q liquibase-sdk:get-build-info '-Dliquibase.sdk.buildInfo.outputKey=overview' '-Dliquibase.sdk.repo=liquibase/liquibase-pro')"
echo "::notice :: Installed Snapshot Liquibase-pro $buildOverview"
- name: Cache installed Liquibase
uses: actions/cache@v4
Expand Down

0 comments on commit 36f93d5

Please sign in to comment.