Skip to content

Commit

Permalink
Disable harness (#173)
Browse files Browse the repository at this point in the history
* Disable test harness

* Disable test harness
  • Loading branch information
filipelautert authored Oct 4, 2023
1 parent aa2f8c5 commit 0750467
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,37 +102,37 @@ jobs:
**/target/surefire-reports
**/target/jacoco.exec
prepare-database:
name: Clean and initialize database
needs: build
runs-on: ubuntu-latest
container:
image: liquibase/liquibase:latest

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v2

- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: liquibase-redshift-artifacts

- name: Download AWS Redshift driver
run: wget https://s3.amazonaws.com/redshift-downloads/drivers/jdbc/2.1.0.14/redshift-jdbc42-2.1.0.14.jar

- name: Add Redshift extension and driver to liquibase classpath
run: |
cp redshift-jdbc42-2.1.0.14.jar /liquibase/lib/
cp liquibase-redshift-0-SNAPSHOT.jar /liquibase/lib/
- name: Clean AWS Redshift Database
run: liquibase --username="${{ secrets.TH_DB_ADMIN }}" --password="${{ secrets.TH_DB_PASSWD }}" --url="${{ secrets.TH_REDSHIFTURL }}" dropAll

- name: Init Database
run: liquibase --classpath="src/test/resources" --changeLogFile="harness.initScript.sql" --username="${{ secrets.TH_DB_ADMIN }}" --password="${{ secrets.TH_DB_PASSWD }}" --url="${{ secrets.TH_REDSHIFTURL }}" update
# prepare-database:
# name: Clean and initialize database
# needs: build
# runs-on: ubuntu-latest
# container:
# image: liquibase/liquibase:latest
#
# strategy:
# fail-fast: false
#
# steps:
# - uses: actions/checkout@v2
#
# - name: Download Artifacts
# uses: actions/download-artifact@v3
# with:
# name: liquibase-redshift-artifacts
#
# - name: Download AWS Redshift driver
# run: wget https://s3.amazonaws.com/redshift-downloads/drivers/jdbc/2.1.0.14/redshift-jdbc42-2.1.0.14.jar
#
# - name: Add Redshift extension and driver to liquibase classpath
# run: |
# cp redshift-jdbc42-2.1.0.14.jar /liquibase/lib/
# cp liquibase-redshift-0-SNAPSHOT.jar /liquibase/lib/
#
# - name: Clean AWS Redshift Database
# run: liquibase --username="${{ secrets.TH_DB_ADMIN }}" --password="${{ secrets.TH_DB_PASSWD }}" --url="${{ secrets.TH_REDSHIFTURL }}" dropAll
#
# - name: Init Database
# run: liquibase --classpath="src/test/resources" --changeLogFile="harness.initScript.sql" --username="${{ secrets.TH_DB_ADMIN }}" --password="${{ secrets.TH_DB_PASSWD }}" --url="${{ secrets.TH_REDSHIFTURL }}" update

# integration-test:
# name: Test Harness for Redshift ${{ matrix.redshift }}
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
dependabot:
name: Merge dependabot
runs-on: ubuntu-latest
needs: integration-test
needs: unit-test
permissions:
contents: write
pull-requests: write
Expand Down

0 comments on commit 0750467

Please sign in to comment.