Skip to content

Commit

Permalink
Merge pull request #632 from liquibase/DAT-16417
Browse files Browse the repository at this point in the history
DAT-16417
Extensions nightly build review - hibernate6
  • Loading branch information
jandroav authored Dec 12, 2023
2 parents 4687a6e + 3acdae5 commit a4f21c0
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ on:
jobs:

attach-artifact-to-release:
uses: liquibase/build-logic/.github/workflows/[email protected].6
uses: liquibase/build-logic/.github/workflows/[email protected].8
secrets: inherit
51 changes: 51 additions & 0 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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@v3
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@v3
with:
name: test-reports-hibernate-${{ matrix.hibernate }}
path: |
**/target/surefire-reports
**/target/jacoco.exec
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ permissions:

jobs:
create-release:
uses: liquibase/build-logic/.github/workflows/[email protected].6
uses: liquibase/build-logic/.github/workflows/[email protected].8
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:

jobs:
build-test:
uses: liquibase/build-logic/.github/workflows/[email protected].6
uses: liquibase/build-logic/.github/workflows/[email protected].8
secrets: inherit
with:
java: '[17, 21]'
Expand Down Expand Up @@ -60,5 +60,5 @@ jobs:
dependabot:
needs: hibernate-test
uses: liquibase/build-logic/.github/workflows/[email protected].6
uses: liquibase/build-logic/.github/workflows/[email protected].8
secrets: inherit

0 comments on commit a4f21c0

Please sign in to comment.