Skip to content

Commit

Permalink
DAT-15503. added mongo atlas test run to the nightly-build.yml
Browse files Browse the repository at this point in the history
DAT-15503. added mongo atlas test run to the nightly-build.yml

DAT-15503. commented dropAll step

DAT-15503. test

DAT-15503. test

DAT-15503. test

DAT-15503. test

DAT-15503. test

DAT-15503. test
  • Loading branch information
PavloTytarchuk committed Mar 14, 2024
1 parent c8bc68a commit 4e72263
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
name: "Nightly build"

on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
schedule:
- cron: '0 7 * * 1-5'

Expand All @@ -11,3 +17,28 @@ jobs:
with:
nightly: true
secrets: inherit

mongo-atlas-tests:
name: MongoDB Atlas 7 Test
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

# - name: Clean Mongo Atlas 7 Database
# uses: liquibase-github-actions/[email protected]
# with:
# url: "${{secrets.TH_MONGO_ATLAS_URL}}"
# username: "${{secrets.TH_DB_ADMIN}}"
# password: "${{secrets.TH_DB_PASSWD}}"
# licenseKey: "${{secrets.LICENSE_KEY}}"

- name: Harness Foundational Test Suite Run on Atlas 7
run: mvn -Dtest="HarnessNoSqlCompatibility" -DdbName=mongodb -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{secrets.TH_MONGO_ATLAS_URL}}' clean package

- name: Archive Mongo Atlas Test Results
uses: actions/upload-artifact@v4
with:
name: mongodb-test-results
path: build/spock-reports
11 changes: 0 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,6 @@ jobs:
**/target/**
~/.m2/repository/org/liquibase/
- name: Clean Mongo Atlas 7 Database
uses: liquibase-github-actions/[email protected]
with:
url: "${{secrets.TH_MONGO_ATLAS_URL}}"
username: "${{secrets.TH_DB_ADMIN}}"
password: "${{secrets.TH_DB_PASSWD}}"
licenseKey: "${{secrets.LICENSE_KEY}}"

- name: Start Database
run: |
docker ps -a
Expand All @@ -174,9 +166,6 @@ jobs:
- name: Harness Foundational Test Suite Run on Docker - Java ${{ matrix.java }}
run: mvn -Dtest="HarnessNoSqlCompatibility" -DdbName=mongodb clean package

- name: Harness Foundational Test Suite Run on Atlas 7 - Java ${{ matrix.java }}
run: mvn -Dtest="HarnessNoSqlCompatibility" -DconfigFile=/harness-config-cloud.yml -DdbName=mongodb -DdbVersion=atlas -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{secrets.TH_MONGO_ATLAS_URL}}' clean package

- name: Stop Docker Databases
if: always()
run: docker-compose -f ./src/test/resources/docker/docker-compose.yml down
Expand Down

0 comments on commit 4e72263

Please sign in to comment.