From d81f9d38955a155816500654ce54936e043cc0db Mon Sep 17 00:00:00 2001 From: jandroav Date: Wed, 28 Jun 2023 10:41:56 +0200 Subject: [PATCH] chore(create-release.yml): add integration tests job to test the application with different versions of Java and MongoDB chore(release-published.yml): sync updated index-file to S3 bucket for MongoDB XML namespace documentation --- .github/workflows/create-release.yml | 24 ++++++++++++++++++++++++ .github/workflows/release-published.yml | 4 +++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 8bd6eeef..6896c56c 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -106,6 +106,30 @@ jobs: path: | target/*.jar pom.xml + + integration-tests: + name: Java ${{ matrix.java }} + runs-on: ubuntu-latest + needs: build + strategy: + matrix: + java: [8, 11, 17] + mongodb: [4] + services: + mongodb: + image: mongo:${{ matrix.mongodb }} + ports: + - 27017-27019:27017-27019 + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'adopt' + - name: Test With Maven + run: mvn clean verify -Prun-its --file pom.xml draft-release: needs: [ setup, build, release-prepare ] diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml index 20adceee..af41ac58 100644 --- a/.github/workflows/release-published.yml +++ b/.github/workflows/release-published.yml @@ -81,4 +81,6 @@ jobs: if [[ "$entry" != "liquibase-mongodb-latest.xsd" ]] && [[ "$entry" != "index.htm" ]] ;then sed -ie "s/<\/ul>/
  • ${entry}<\/a><\/li>\n<\/ul>/" index-file/index.htm fi - done \ No newline at end of file + done + + aws s3 sync index-file s3://liquibaseorg-origin/xml/ns/mongodb/ --only-show-errors \ No newline at end of file