diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index b57ab224..8e95f7f0 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -28,22 +28,27 @@ jobs: uses: gradle/actions/setup-gradle@v4 - name: "πŸ”¨ Run Base Tests" env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} - DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} - DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} + DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_USER }} + DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_KEY }} run: ./gradlew check - - name: "β˜„οΈ Upload Base Tests Results" + - name: "β˜„οΈ Upload Base Tests Results - audit-test" + uses: actions/upload-artifact@v4 + with: + name: testreport-audit-test-${{ matrix.java }} + path: examples/audit-test/build/reports/tests + - name: "β˜„οΈ Upload Base Tests Results - audit-test-allow-update-outside-transaction" uses: actions/upload-artifact@v4 with: name: testreport-audit-test-allow-update-outside-transaction-${{ matrix.java }} path: examples/audit-test-allow-update-outside-transaction/build/reports/tests - - name: "πŸ”¨ Run Tests Outside of Transaction" + - name: "πŸ”¨ Run audit-test Outside of Transaction Tests" env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} - DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} - DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} + DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_USER }} + DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_KEY }} run: ./gradlew :examples:audit-test:check -Daudit-test.AuditTrail.datasource=DEFAULT - - name: "β˜„οΈ Upload Outside of Transaction Tests Results" + - name: "β˜„οΈ Upload audit-test Outside of Transaction Tests Results" uses: actions/upload-artifact@v4 with: name: testreport-audit-test-single-datasource-${{ matrix.java }} @@ -66,7 +71,7 @@ jobs: uses: gradle/actions/setup-gradle@v4 - name: "πŸ“€ Publish to Snapshot (repo.grails.org)" env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_PUBLISH_USERNAME }} MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PUBLISH_PASSWORD }} MAVEN_PUBLISH_URL: ${{ secrets.MAVEN_PUBLISH_SNAPSHOT_URL }} @@ -75,7 +80,7 @@ jobs: - name: "πŸ“œ Generate Documentation" if: success() env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} working-directory: ./plugin run: ../gradlew docs - name: "πŸš€ Publish to Github Pages" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a99a10c7..2763e7b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,8 +47,8 @@ jobs: if: success() id: assemble env: - DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} - DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} + DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_USER }} + DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_KEY }} run: ./gradlew assemble - name: "πŸ“ Generate secring file" env: @@ -64,8 +64,8 @@ jobs: SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} SECRING_FILE: ${{ secrets.SECRING_FILE }} - DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} - DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} + DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_USER }} + DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_KEY }} working-directory: ./plugin run: > ../gradlew @@ -93,11 +93,11 @@ jobs: - name: "🐘 Setup Gradle" uses: gradle/actions/setup-gradle@v4 with: - develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} + develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} - name: "πŸ†Nexus Staging Close And Release" env: - DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} - DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} + DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_USER }} + DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_KEY }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} @@ -134,8 +134,8 @@ jobs: - name: "πŸ“œ Generate Documentation" id: docs env: - DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} - DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} + DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_USER }} + DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_KEY }} working-directory: ./plugin run: ../gradlew docs - name: "πŸš€ Publish to Github Pages" diff --git a/examples/audit-test-allow-update-outside-transaction/build.gradle b/examples/audit-test-allow-update-outside-transaction/build.gradle index 9a2ba0ae..99825c61 100644 --- a/examples/audit-test-allow-update-outside-transaction/build.gradle +++ b/examples/audit-test-allow-update-outside-transaction/build.gradle @@ -89,3 +89,14 @@ test { exceptionFormat = 'full' } } + +tasks.withType(Test).configureEach { Task it -> + useJUnitPlatform() + + if (it.name == 'test') { + it.testLogging { + showStandardStreams = true + exceptionFormat = 'full' + } + } +} \ No newline at end of file diff --git a/examples/audit-test/build.gradle b/examples/audit-test/build.gradle index 8ee9f5b4..578de005 100644 --- a/examples/audit-test/build.gradle +++ b/examples/audit-test/build.gradle @@ -82,20 +82,24 @@ task wrapper(type: Wrapper) { gradleVersion = gradleWrapperVersion } -test { - testLogging { - showStandardStreams = true - exceptionFormat = 'full' - events = ["passed", "failed", "skipped", 'standardOut', 'standardError'] +tasks.withType(Test).configureEach { Task it -> + useJUnitPlatform() + + if (it.name == 'test') { + it.testLogging { + showStandardStreams = true + exceptionFormat = 'full' + events = ["passed", "failed", "skipped", 'standardOut', 'standardError'] + } } -} -integrationTest { - // Added to pass on audit-test.AuditTrail.datasource - systemProperties += System.properties - testLogging { - showStandardStreams = true - exceptionFormat = 'full' - events = ["passed", "failed", "skipped", 'standardOut', 'standardError'] + if (it.name == 'integrationTest') { + // Added to pass on audit-test.AuditTrail.datasource + it.systemProperties += System.properties + it.testLogging { + showStandardStreams = true + exceptionFormat = 'full' + events = ["passed", "failed", "skipped", 'standardOut', 'standardError'] + } } }