Repository: micronaut-projects/micronaut-test
Pull request #763 (2023-05-13 06:33:50)

[test] Update common files for branch master
Update common files

sonarcloud[bot]: Kudos, SonarCloud Quality Gate passed!&nbsp; &nbsp; [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png 'Quality Gate passed')](https://sonarcloud.io/dashboard?id=micronaut-projects_micronaut-test&pullRequest=763)

[![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=BUG)  
[![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=VULNERABILITY)  
[![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=SECURITY_HOTSPOT)  
[![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=763&resolved=false&types=CODE_SMELL)

[![No Coverage information](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/NoCoverageInfo-16px.png 'No Coverage information')](https://sonarcloud.io/component_measures?id=micronaut-projects_micronaut-test&pullRequest=763&metric=coverage&view=list) No Coverage information  
[![No Duplication information](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/NoDuplicationInfo-16px.png 'No Duplication information')](https://sonarcloud.io/component_measures?id=micronaut-projects_micronaut-test&pullRequest=763&metric=duplicated_lines_density&view=list) No Duplication information



Patch:
diff --git a/.github/workflows/graalvm-dev.yml b/.github/workflows/graalvm-dev.yml
new file mode 100644
index 00000000..ed84a383
--- /dev/null
+++ b/.github/workflows/graalvm-dev.yml
@@ -0,0 +1,40 @@
+# WARNING: Do not edit this file directly. Instead, go to:
+#
+# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows
+#
+# and edit them there. Note that it will be sync'ed to all the Micronaut repos
+name: GraalVM Dev CI
+on:
+  schedule:
+    - cron: "0 1 * * 1-5" # Mon-Fri at 1am UTC
+jobs:
+  build:
+    if: github.repository != 'micronaut-projects/micronaut-project-template'
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        graalvm: [ 'dev' ]
+        java: [ '17' ]
+    env:
+      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
+      GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
+      GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
+    steps:
+      - uses: actions/checkout@v3
+      - name: Pre-Build Steps
+        uses: micronaut-projects/github-actions/graalvm/pre-build@master
+        id: pre-build
+        with:
+          graalvm: ${{ matrix.graalvm }}
+          java: ${{ matrix.java }}
+      - name: Build Steps
+        uses: micronaut-projects/github-actions/graalvm/build@master
+        id: build
+        env:
+          GH_TOKEN_PUBLIC_REPOS_READONLY: ${{ secrets.GH_TOKEN_PUBLIC_REPOS_READONLY }}
+          GH_USERNAME: ${{ secrets.GH_USERNAME }}
+      - name: Post-Build Steps
+        uses: micronaut-projects/github-actions/graalvm/post-build@master
+        id: post-build
+        with:
+          java: ${{ matrix.java }}
diff --git a/.github/workflows/graalvm.yml b/.github/workflows/graalvm.yml
deleted file mode 100644
index 25f4ec7d..00000000
--- a/.github/workflows/graalvm.yml
+++ /dev/null
@@ -1,76 +0,0 @@
-# WARNING: Do not edit this file directly. Instead, go to:
-#
-# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows
-#
-# and edit them there. Note that it will be sync'ed to all the Micronaut repos
-name: GraalVM Dev CI
-on:
-  schedule:
-    - cron: "0 1 * * 1-5" # Mon-Fri at 1am UTC
-  workflow_dispatch:
-jobs:
-  build:
-    if: github.repository != 'micronaut-projects/micronaut-project-template'
-    runs-on: ubuntu-latest
-    strategy:
-      matrix:
-        graalvm: [ 'dev']
-        java: ['17']
-    env:
-      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
-      GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
-      GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
-      GH_TOKEN_PUBLIC_REPOS_READONLY: ${{ secrets.GH_TOKEN_PUBLIC_REPOS_READONLY }}
-      GH_USERNAME: ${{ secrets.GH_USERNAME }}
-      TESTCONTAINERS_RYUK_DISABLED: true
-      PREDICTIVE_TEST_SELECTION: "${{ github.event_name == 'pull_request' && 'true' || 'false' }}"
-      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-    steps:
-       # https://github.com/actions/virtual-environments/issues/709
-      - name: "🗑 Free disk space"
-        run: |
-         sudo rm -rf "/usr/local/share/boost"
-         sudo rm -rf "$AGENT_TOOLSDIRECTORY"
-         sudo apt-get clean
-         df -h
-
-      - name: "📥 Checkout repository"
-        uses: actions/checkout@v3
-        with:
-          fetch-depth: 0
-
-      - name: "🔧 Setup GraalVM CE"
-        uses: graalvm/setup-graalvm@v1
-        with:
-          version: ${{ matrix.graalvm }}
-          java-version: ${{ matrix.java }}
-          components: 'native-image'
-          github-token: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: "🔧 Setup Gradle"
-        uses: gradle/gradle-build-action@v2
-
-      - name: "❓ Optional setup step"
-        run: |
-          [ -f ./setup.sh ] && ./setup.sh || [ ! -f ./setup.sh ]
-
-      - name: "🛠 Build with Gradle"
-        id: gradle
-        run: |
-          ./gradlew check --no-daemon --continue
-
-      - name: "📊 Publish Test Report"
-        if: always()
-        uses: mikepenz/action-junit-report@v3
-        with:
-          check_name: Java CI / Test Report (${{ matrix.java }})
-          report_paths: '**/build/test-results/test/TEST-*.xml'
-          check_retries: 'true'
-
-      - name: "📜 Upload binary compatibility check results"
-        if: always()
-        uses: actions/upload-artifact@v3
-        with:
-          name: binary-compatibility-reports
-          path: "**/build/reports/binary-compatibility-*.html"
-


Test patch:
diff --git a/.github/workflows/graalvm-latest.yml b/.github/workflows/graalvm-latest.yml
new file mode 100644
index 00000000..9448e067
--- /dev/null
+++ b/.github/workflows/graalvm-latest.yml
@@ -0,0 +1,46 @@
+# WARNING: Do not edit this file directly. Instead, go to:
+#
+# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows
+#
+# and edit them there. Note that it will be sync'ed to all the Micronaut repos
+name: GraalVM Latest CI
+on:
+  push:
+    branches:
+      - master
+      - '[1-9]+.[0-9]+.x'
+  pull_request:
+    branches:
+      - master
+      - '[1-9]+.[0-9]+.x'
+jobs:
+  build:
+    if: github.repository != 'micronaut-projects/micronaut-project-template'
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        graalvm: [ 'latest' ]
+        java: [ '17' ]
+    env:
+      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
+      GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
+      GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
+    steps:
+      - uses: actions/checkout@v3
+      - name: Pre-Build Steps
+        uses: micronaut-projects/github-actions/graalvm/pre-build@master
+        id: pre-build
+        with:
+          graalvm: ${{ matrix.graalvm }}
+          java: ${{ matrix.java }}
+      - name: Build Steps
+        uses: micronaut-projects/github-actions/graalvm/build@master
+        id: build
+        env:
+          GH_TOKEN_PUBLIC_REPOS_READONLY: ${{ secrets.GH_TOKEN_PUBLIC_REPOS_READONLY }}
+          GH_USERNAME: ${{ secrets.GH_USERNAME }}
+      - name: Post-Build Steps
+        uses: micronaut-projects/github-actions/graalvm/post-build@master
+        id: post-build
+        with:
+          java: ${{ matrix.java }}
diff --git a/test-junit5/build.gradle b/test-junit5/build.gradle
index 10120acc..73bccd86 100644
--- a/test-junit5/build.gradle
+++ b/test-junit5/build.gradle
@@ -73,16 +73,6 @@ graalvmNative {
     }
 }
 
-tasks.named("check") { task ->
-    def graal = ["jvmci.Compiler", "java.vendor.version", "java.vendor"].any {
-        println "$it ${System.getProperty(it)}"
-        System.getProperty(it)?.toLowerCase(Locale.ENGLISH)?.contains("graal")
-    }
-    if (graal) {
-        task.dependsOn("nativeTest")
-    }
-}
-
 tasks.named("test") {
     systemProperty("mockito.test.enabled", "true")
 }