From 3acdae575e3520d173977544723fd4b88db1d69d Mon Sep 17 00:00:00 2001 From: jandroav Date: Tue, 12 Dec 2023 10:14:10 +0100 Subject: [PATCH] chore(attach-artifact-release.yml): update liquibase/build-logic extension version to v0.5.8 feat(build-nightly.yml): add workflow for nightly build of the extension against the latest Liquibase artifact feat(create-release.yml): update liquibase/build-logic extension version to v0.5.8 feat(test.yml): update liquibase/build-logic extension version to v0.5.8 --- .github/workflows/attach-artifact-release.yml | 2 +- .github/workflows/build-nightly.yml | 51 +++++++++++++++++++ .github/workflows/create-release.yml | 2 +- .github/workflows/test.yml | 4 +- 4 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build-nightly.yml diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index ac4c6e6c..ee5d997f 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -8,5 +8,5 @@ on: jobs: attach-artifact-to-release: - uses: liquibase/build-logic/.github/workflows/extension-attach-artifact-release.yml@v0.5.6 + uses: liquibase/build-logic/.github/workflows/extension-attach-artifact-release.yml@v0.5.8 secrets: inherit diff --git a/.github/workflows/build-nightly.yml b/.github/workflows/build-nightly.yml new file mode 100644 index 00000000..49f7ee26 --- /dev/null +++ b/.github/workflows/build-nightly.yml @@ -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/os-extension-test.yml@v0.5.8 + 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 \ No newline at end of file diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 8dc0d060..fa281c63 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -12,5 +12,5 @@ permissions: jobs: create-release: - uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.5.6 + uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.5.8 secrets: inherit diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c6eef0c..2a7e910d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ permissions: jobs: build-test: - uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.6 + uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.8 secrets: inherit with: java: '[17, 21]' @@ -60,5 +60,5 @@ jobs: dependabot: needs: hibernate-test - uses: liquibase/build-logic/.github/workflows/dependabot-automerge.yml@v0.5.6 + uses: liquibase/build-logic/.github/workflows/dependabot-automerge.yml@v0.5.8 secrets: inherit