forked from alexandru-slobodcicov/liquibase-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAT-15503. added mongo atlas test run to the nightly-build.yml
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
1 parent
c8bc68a
commit 4e72263
Showing
2 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,12 @@ | |
name: "Nightly build" | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
schedule: | ||
- cron: '0 7 * * 1-5' | ||
|
||
|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|