From 0b25e2ae9c922da36ed64399ae2e5a289755ad26 Mon Sep 17 00:00:00 2001 From: Vyacheslav Rusakov Date: Mon, 9 Dec 2024 13:53:09 +0700 Subject: [PATCH] fix java 8 tests, disable examples ci for pull requets --- .github/workflows/CI.yml | 3 +++ .../custom/MultiplatformAndroidNoClasspathDebugKitTest.groovy | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index dcc5c24..9f573aa 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -35,6 +35,7 @@ jobs: run: ./gradlew check --no-daemon - name: Build coverage report + if: github.event_name != 'pull_request' run: ./gradlew jacocoTestReport --no-daemon - uses: codecov/codecov-action@v4 @@ -47,10 +48,12 @@ jobs: # publish snapshot after successful tests publish: + if: github.event_name != 'pull_request' needs: build uses: ./.github/workflows/publish-snapshot.yml # run examples with published snapshot examples: + if: github.event_name != 'pull_request' needs: publish uses: ./.github/workflows/examples-CI.yml \ No newline at end of file diff --git a/src/test/groovy/ru/vyarus/gradle/plugin/animalsniffer/debug/custom/MultiplatformAndroidNoClasspathDebugKitTest.groovy b/src/test/groovy/ru/vyarus/gradle/plugin/animalsniffer/debug/custom/MultiplatformAndroidNoClasspathDebugKitTest.groovy index 87aa9a8..0f0ec65 100644 --- a/src/test/groovy/ru/vyarus/gradle/plugin/animalsniffer/debug/custom/MultiplatformAndroidNoClasspathDebugKitTest.groovy +++ b/src/test/groovy/ru/vyarus/gradle/plugin/animalsniffer/debug/custom/MultiplatformAndroidNoClasspathDebugKitTest.groovy @@ -3,11 +3,13 @@ package ru.vyarus.gradle.plugin.animalsniffer.debug.custom import org.gradle.testkit.runner.BuildResult import org.gradle.testkit.runner.TaskOutcome import ru.vyarus.gradle.plugin.animalsniffer.debug.AbstractDebugKitTest +import spock.lang.IgnoreIf /** * @author Vyacheslav Rusakov * @since 06.12.2024 */ +@IgnoreIf({ !jvm.java17Compatible }) class MultiplatformAndroidNoClasspathDebugKitTest extends AbstractDebugKitTest { def "Check multiple declared platforms debug (with android)"() {