Nightly build #219
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
# This workflow will build the extension against the latest Liquibase artifact | |
name: "Nightly build" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 7 * * 1-5' | |
jobs: | |
nightly-build: | |
uses: liquibase/build-logic/.github/workflows/[email protected] | |
with: | |
nightly: true | |
java: '[17, 21]' | |
os: '["ubuntu-latest"]' | |
secrets: inherit | |
hibernate-test: | |
name: Test Hibernate ${{ matrix.hibernate }} | |
needs: nightly-build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
hibernate: [ "6.0.2.Final", "6.1.7.Final", "6.2.7.Final", "6.3.1.Final" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Run Compatibility Tests | |
run: mvn -B jacoco:prepare-agent surefire:test -Dhibernate.version=${{ matrix.hibernate }} | |
- name: Run Tests | |
run: mvn -B jacoco:prepare-agent surefire:test | |
- name: Archive Test Results | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-reports-hibernate-${{ matrix.hibernate }} | |
path: | | |
**/target/surefire-reports | |
**/target/jacoco.exec |