diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0581e36f..5745d202 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,13 +9,88 @@ on: - synchronize jobs: - build-test: - uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.3.1 - secrets: inherit + build: + # This extension can not execute hibernete tests on Java 8/11. This needs to be fixed and then uncomment the following 2 lines and remove the build and unit-test logic from here + #uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.3.3 + #secrets: inherit + name: Build & Package + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: 'temurin' + cache: 'maven' + + - name: Build and Package + run: mvn -B dependency:go-offline clean package -DskipTests=true + + - name: Get Artifact ID + id: get-artifact-id + run: echo "::set-output name=artifact_id::$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)" + + - name: Save Artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{ steps.get-artifact-id.outputs.artifact_id }}-artifacts + path: | + target/* + + - name: Save Event File + uses: actions/upload-artifact@v3 + with: + name: Event File + path: ${{ github.event_path }} + + outputs: + artifact_id: ${{ steps.get-artifact-id.outputs.artifact_id }} + + unit-test: + name: Test Java ${{ matrix.java }} + runs-on: ubuntu-latest + needs: build + + strategy: + fail-fast: false + matrix: + java: [ 17, 19 ] + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: 'maven' + + - name: Build Cache + uses: actions/cache@v3.0.5 + with: + key: build-${{ github.run_number }}-${{ github.run_attempt }} + path: | + **/target/** + ~/.m2/repository/org/liquibase/ + + - name: Run Tests + run: mvn -B jacoco:prepare-agent surefire:test + + - name: Archive Test Results + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: test-reports-jdk-${{ matrix.java }} + path: | + **/target/surefire-reports + **/target/jacoco.exec hibernate-test: name: Test Hibernate ${{ matrix.hibernate }} - needs: build-test + needs: build runs-on: ubuntu-latest strategy: @@ -34,10 +109,10 @@ jobs: cache: 'maven' - name: Run Compatibility Tests - run: mvn -qB jacoco:prepare-agent surefire:test -Dhibernate.version=${{ matrix.hibernate }} + run: mvn -B jacoco:prepare-agent surefire:test -Dhibernate.version=${{ matrix.hibernate }} - name: Run Tests - run: mvn -qB jacoco:prepare-agent surefire:test + run: mvn -B jacoco:prepare-agent surefire:test - name: Archive Test Results if: ${{ always() }} diff --git a/build/spock-reports/aggregated_report.json b/build/spock-reports/aggregated_report.json new file mode 100644 index 00000000..e69de29b diff --git a/build/spock-reports/index.html b/build/spock-reports/index.html new file mode 100644 index 00000000..1192ed06 --- /dev/null +++ b/build/spock-reports/index.html @@ -0,0 +1,134 @@ + + + + + + +

Specification run results

+
+
+

Specifications summary:

+
Created on Fri Jul 28 14:00:37 CEST 2023 by jandro
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TotalPassedFailedSkippedFt TotalFt PassedFt FailedFt SkippedSuccess rateTotal time
00000000100.0%0
+
+

Specifications:

+ + + + + + + + + + + + + + +
NameFeaturesIterationsFailedErrorsSkippedSuccess rateTime
+
+ + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 37480bd3..8dc54bbf 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.liquibase.ext liquibase-hibernate6 - 0-SNAPSHOT + 4.23.1-SNAPSHOT Liquibase Hibernate Integration Liquibase extension for hibernate integration including generating changesets based on changed @@ -71,10 +71,9 @@ UTF-8 6.1.7.Final 6.0.11 - 0-SNAPSHOT + 4.23.0 ${env.GITHUB_TOKEN} - liquibase ${project.artifactId} ${project.name} @@ -82,8 +81,10 @@ https://sonarcloud.io git true - target + 0.8.10 + 3.0.1 + 1.0.1 @@ -170,27 +171,17 @@ 8.0.30 test - - - - - - - - - - - - - - - - - - + + + ${project.basedir}/src/main/resources + + www.liquibase.org/xml/ns/mongodb/index.htm + + + maven-resources-plugin @@ -199,11 +190,25 @@ UTF-8 + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + + target + + **/jacoco.exec + + + + + maven-compiler-plugin 3.11.0 - 17 true true ${project.build.sourceEncoding} @@ -239,63 +244,102 @@ - org.apache.maven.plugins - maven-javadoc-plugin - 3.5.0 - - true - false - Liquibase Hibernate ${project.version} API - true - none - UTF-8 - - false - + maven-enforcer-plugin - javadoc-default + enforce-java + compile - jar + enforce - package + + + + 1.8 + + + - - org.apache.maven.plugins - maven-source-plugin + maven-jar-plugin 3.3.0 + + + + Liquibase + ${liquibase.version} + Liquibase.org + ${project.name} + ${project.version} + Liquibase + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://oss.sonatype.org/ + + + + maven-shade-plugin + 3.5.0 - attach-sources - package + über-jar - jar + shade + + false + true + full + + + *:* + + **/module-info.class + META-INF/MANIFEST.MF + empty.txt + + + + + + + + false + + + - - org.jacoco - jacoco-maven-plugin - 0.8.10 + org.codehaus.mojo + versions-maven-plugin + 2.16.0 - - - ${jacoco.fileset.directory} - - **/jacoco.exec - - - + false + + + + org.apache.maven.plugins + maven-release-plugin + ${maven-release-plugin.version} + + [Version Bumped to ${project.version}] - org.sonarsource.scanner.maven sonar-maven-plugin @@ -310,4 +354,134 @@ - + + + + sonatype-nexus-staging + Nexus Release Repository + https://oss.sonatype.org/service/local/staging/deploy/maven2 + + + sonatype-nexus-staging + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + + + + coverage + + + env.CI + true + + + + + + org.jacoco + jacoco-maven-plugin + + + + target + + **/jacoco.exec + + + + + + + prepare-agent + + prepare-agent + + + + report + + report + + + + + + + + + + release + + + env.CI + true + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.0 + + + attach-sources + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + false + Liquibase CDI ${project.version} API + true + none + UTF-8 + ${project.basedir}/target + + + + jar-javadoc + + jar + + package + + + + + + com.coderplus.maven.plugins + copy-rename-maven-plugin + ${copy-rename-maven-plugin.version} + + + copy + package + + copy + + + + + ${project.basedir}/pom.xml + ${project.build.directory}/${project.artifactId}-${project.version}.pom + + + + + + + + + + + + \ No newline at end of file