diff --git a/.github/workflows/test-native-gradle-plugin.yml b/.github/workflows/test-native-gradle-plugin.yml index e1b259bb1..99203a3eb 100644 --- a/.github/workflows/test-native-gradle-plugin.yml +++ b/.github/workflows/test-native-gradle-plugin.yml @@ -43,65 +43,6 @@ jobs: id: set-matrix run: ./gradlew -PmatrixType=gradle :native-gradle-plugin:dumpFunctionalTestList - test-native-gradle-plugin: - name: "Sanity checks" - runs-on: "ubuntu-20.04" - timeout-minutes: 50 - strategy: - fail-fast: false - matrix: - java-version: [ 17 ] - os: [ ubuntu-20.04 ] - steps: - - name: "โ˜๏ธ Checkout repository" - uses: actions/checkout@v4 - - name: "๐Ÿ”ง Prepare environment" - uses: ./.github/actions/prepare-environment - with: - java-version: ${{ matrix.java-version }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - name: "โ“ Unit tests and inspections" - run: ./gradlew :native-gradle-plugin:test :native-gradle-plugin:inspections - - name: "๐Ÿ“œ Upload unit test results" - uses: actions/upload-artifact@v3 - with: - name: unit-tests-results - path: native-gradle-plugin/build/reports/tests/test/ - - functional-testing-gradle-plugin-dev: - name: "Functional testing (GraalVM Dev Build)" - runs-on: ${{ matrix.os }} - env: - IS_GRAALVM_DEV_BUILD: 'true' - strategy: - fail-fast: false - matrix: - java-version: [ 17 ] - os: [ ubuntu-20.04 ] - steps: - - name: "โ˜๏ธ Checkout repository" - uses: actions/checkout@v4 - - name: "๐Ÿ”ง Prepare environment" - uses: ./.github/actions/prepare-environment - with: - java-version: ${{ matrix.java-version }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - name: "๐Ÿ”ง Install GraalVM (dev)" - uses: graalvm/setup-graalvm@main - with: - java-version: 'dev' - distribution: 'graalvm' - github-token: ${{ inputs.github-token }} - set-java-home: 'false' - - name: "โ“ Check and test the plugin" - run: ./gradlew :native-gradle-plugin:functionalTest - - name: "๐Ÿ“œ Upload functional tests results" - if: always() - uses: actions/upload-artifact@v3 - with: - name: functional-tests-results-graalvm-dev - path: native-gradle-plugin/build/reports/tests/functionalTest/ - functional-testing-gradle-plugin: name: "๐Ÿงช Gradle: ${{ matrix.test }} on ${{ matrix.os }} with gradle version: ${{ matrix.gradle-version }}" runs-on: ${{ matrix.os }} @@ -171,3 +112,62 @@ jobs: with: name: functional-tests-results-${{ matrix.gradle-config-cache-version }} path: native-gradle-plugin/build/reports/tests/functionalTest/ + + test-native-gradle-plugin: + name: "Sanity checks" + runs-on: "ubuntu-20.04" + timeout-minutes: 50 + strategy: + fail-fast: false + matrix: + java-version: [ 17 ] + os: [ ubuntu-20.04 ] + steps: + - name: "โ˜๏ธ Checkout repository" + uses: actions/checkout@v4 + - name: "๐Ÿ”ง Prepare environment" + uses: ./.github/actions/prepare-environment + with: + java-version: ${{ matrix.java-version }} + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: "โ“ Unit tests and inspections" + run: ./gradlew :native-gradle-plugin:test :native-gradle-plugin:inspections + - name: "๐Ÿ“œ Upload unit test results" + uses: actions/upload-artifact@v3 + with: + name: unit-tests-results + path: native-gradle-plugin/build/reports/tests/test/ + + functional-testing-gradle-plugin-dev: + name: "Functional testing (GraalVM Dev Build)" + runs-on: ${{ matrix.os }} + env: + IS_GRAALVM_DEV_BUILD: 'true' + strategy: + fail-fast: false + matrix: + java-version: [ 17 ] + os: [ ubuntu-20.04 ] + steps: + - name: "โ˜๏ธ Checkout repository" + uses: actions/checkout@v4 + - name: "๐Ÿ”ง Prepare environment" + uses: ./.github/actions/prepare-environment + with: + java-version: ${{ matrix.java-version }} + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: "๐Ÿ”ง Install GraalVM (dev)" + uses: graalvm/setup-graalvm@main + with: + java-version: 'latest-ea' + distribution: 'graalvm' + github-token: ${{ inputs.github-token }} + set-java-home: 'false' + - name: "โ“ Check and test the plugin" + run: ./gradlew :native-gradle-plugin:functionalTest + - name: "๐Ÿ“œ Upload functional tests results" + if: always() + uses: actions/upload-artifact@v3 + with: + name: functional-tests-results-graalvm-dev + path: native-gradle-plugin/build/reports/tests/functionalTest/ diff --git a/.github/workflows/test-native-maven-plugin.yml b/.github/workflows/test-native-maven-plugin.yml index 3e13d60dd..bc748ba9d 100644 --- a/.github/workflows/test-native-maven-plugin.yml +++ b/.github/workflows/test-native-maven-plugin.yml @@ -68,3 +68,37 @@ jobs: with: name: maven-functional-tests-results-${{ matrix.os }} path: native-maven-plugin/build/reports/tests/ + + functional-testing-maven-plugin-dev: + name: "Functional testing (GraalVM Dev Build)" + runs-on: ${{ matrix.os }} + env: + IS_GRAALVM_DEV_BUILD: 'true' + strategy: + fail-fast: false + matrix: + java-version: [ 17 ] + os: [ ubuntu-20.04 ] + steps: + - name: "โ˜๏ธ Checkout repository" + uses: actions/checkout@v4 + - name: "๐Ÿ”ง Prepare environment" + uses: ./.github/actions/prepare-environment + with: + java-version: ${{ matrix.java-version }} + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: "๐Ÿ”ง Install GraalVM (dev)" + uses: graalvm/setup-graalvm@main + with: + java-version: 'latest-ea' + distribution: 'graalvm' + github-token: ${{ inputs.github-token }} + set-java-home: 'false' + - name: "โ“ Check and test the plugin" + run: ./gradlew :native-maven-plugin:functionalTest + - name: "๐Ÿ“œ Upload functional tests results" + if: always() + uses: actions/upload-artifact@v3 + with: + name: functional-tests-results-graalvm-dev + path: native-maven-plugin/build/reports/tests/functionalTest/