Skip to content

Commit

Permalink
chore(create-release.yml): add integration tests job to test the appl…
Browse files Browse the repository at this point in the history
…ication with different versions of Java and MongoDB

chore(release-published.yml): sync updated index-file to S3 bucket for MongoDB XML namespace documentation
  • Loading branch information
jandroav committed Jun 28, 2023
1 parent ab8aa87 commit d81f9d3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ jobs:
if [[ "$entry" != "liquibase-mongodb-latest.xsd" ]] && [[ "$entry" != "index.htm" ]] ;then
sed -ie "s/<\/ul>/ <li><a href=\"\/xml\/ns\/mongodb\/${entry}\">${entry}<\/a><\/li>\n<\/ul>/" index-file/index.htm
fi
done
done
aws s3 sync index-file s3://liquibaseorg-origin/xml/ns/mongodb/ --only-show-errors

0 comments on commit d81f9d3

Please sign in to comment.