Snowflake Cloud #669
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: Snowflake Cloud | |
concurrency: snowflake-run | |
on: | |
# Triggers the workflow on a schedule for the main branch. Also allows for manual triggers | |
schedule: | |
- cron: '0 7 * * *' # Execute every day at noon | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: liquibase-github-actions/[email protected] | |
with: | |
url: "${{secrets.TH_SNOW_URL}}" | |
username: "${{secrets.TH_DB_ADMIN}}" | |
password: "${{secrets.TH_DB_PASSWD}}" | |
licenseKey: "${{secrets.LICENSE_KEY}}" | |
- uses: liquibase/liquibase-github-action@v7 | |
with: | |
operation: "update" | |
classpath: "src/test/resources/init-changelogs/snowflake" | |
changeLogFile: "snowflake.sql" | |
username: "${{secrets.TH_DB_ADMIN}}" | |
password: "${{secrets.TH_DB_PASSWD}}" | |
url: "${{secrets.TH_SNOW_URL}}" | |
- name: Snowflake Test Run | |
env: | |
LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} | |
run: mvn -Dtest=LiquibaseHarnessSuiteTest -DconfigFile=/harness-config-cloud.yml -DdbName=snowflake -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{secrets.TH_SNOW_URL}}' -DrollbackStrategy=rollbackByTag test | |
- name: Archive Snowflake Database Test Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: snowflake-test-results | |
path: build/spock-reports |