build(deps): bump liquibase/build-logic from 0.5.7 to 0.5.9 #155
Workflow file for this run
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
name: Build and Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
build-test: | |
uses: liquibase/build-logic/.github/workflows/[email protected] | |
secrets: inherit | |
integration-tests: | |
name: Integration Test - Java ${{ matrix.java }} | |
runs-on: ubuntu-latest | |
env: | |
LIQUIBOT_TOKEN: ${{ secrets.LIQUIBOT_PAT }} | |
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | |
strategy: | |
matrix: | |
java: [8, 11, 17] | |
mongodb: [4] | |
services: | |
mongodb: | |
image: mongo:${{ matrix.mongodb }} | |
ports: | |
- 27017-27019:27017-27019 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: 'maven' | |
# look for dependencies in maven | |
- name: maven-settings-xml-action | |
uses: whelk-io/maven-settings-xml-action@v21 | |
with: | |
repositories: | | |
[ | |
{ | |
"id": "liquibase", | |
"url": "https://maven.pkg.github.com/liquibase/liquibase", | |
"releases": { | |
"enabled": "false" | |
}, | |
"snapshots": { | |
"enabled": "true", | |
"updatePolicy": "always" | |
} | |
}, | |
{ | |
"id": "liquibase-pro", | |
"url": "https://maven.pkg.github.com/liquibase/liquibase-pro", | |
"releases": { | |
"enabled": "false" | |
}, | |
"snapshots": { | |
"enabled": "true", | |
"updatePolicy": "always" | |
} | |
} | |
] | |
servers: | | |
[ | |
{ | |
"id": "liquibase-pro", | |
"username": "liquibot", | |
"password": "${{ secrets.LIQUIBOT_PAT }}" | |
}, | |
{ | |
"id": "liquibase", | |
"username": "liquibot", | |
"password": "${{ secrets.LIQUIBOT_PAT }}" | |
} | |
] | |
- name: Integration Test - Java ${{ matrix.java }} | |
run: mvn -B clean test verify -Prun-its --file pom.xml | |
harness-tests: | |
name: Harness Tests - Java ${{ matrix.java }} | |
runs-on: ubuntu-latest | |
env: | |
LIQUIBOT_TOKEN: ${{ secrets.LIQUIBOT_PAT }} | |
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | |
strategy: | |
matrix: | |
java: [ 11, 17 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: 'maven' | |
# look for dependencies in maven | |
- name: maven-settings-xml-action | |
uses: whelk-io/maven-settings-xml-action@v21 | |
with: | |
repositories: | | |
[ | |
{ | |
"id": "liquibase", | |
"url": "https://maven.pkg.github.com/liquibase/liquibase", | |
"releases": { | |
"enabled": "false" | |
}, | |
"snapshots": { | |
"enabled": "true", | |
"updatePolicy": "always" | |
} | |
}, | |
{ | |
"id": "liquibase-pro", | |
"url": "https://maven.pkg.github.com/liquibase/liquibase-pro", | |
"releases": { | |
"enabled": "false" | |
}, | |
"snapshots": { | |
"enabled": "true", | |
"updatePolicy": "always" | |
} | |
} | |
] | |
servers: | | |
[ | |
{ | |
"id": "liquibase-pro", | |
"username": "liquibot", | |
"password": "${{ secrets.LIQUIBOT_PAT }}" | |
}, | |
{ | |
"id": "liquibase", | |
"username": "liquibot", | |
"password": "${{ secrets.LIQUIBOT_PAT }}" | |
} | |
] | |
- name: Build Cache | |
uses: actions/[email protected] | |
with: | |
key: build-${{ github.run_number }}-${{ github.run_attempt }} | |
path: | | |
**/target/** | |
~/.m2/repository/org/liquibase/ | |
- name: Start Database | |
run: | | |
docker ps -a | |
docker-compose -f ./src/test/resources/docker/docker-compose.yml up -d | |
docker ps -a | |
- name: Harness Foundational Test Suite Run - Java ${{ matrix.java }} | |
run: mvn -Dtest="HarnessNoSqlCompatibility" -DdbName=mongodb clean package | |
- name: Stop Docker Databases | |
if: always() | |
run: docker-compose -f ./src/test/resources/docker/docker-compose.yml down | |
- name: Archive Mongo Database Test Results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mongodb-test-results | |
path: build/spock-reports |