From 46bf3e8e46d9061c7ef6860295c6b488285573e5 Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Thu, 10 Jun 2021 05:08:23 +0200 Subject: [PATCH] [ci] Only run samples when they actually changed (#9636) * [ci] Only run samples when they actually changed * in pull requests only run the samples that matter * if a sample is outdated it will still fail in the build pipeline * Test Kotlin sample changes * Revert Kotlin sample change --- .github/workflows/samples-dart.yaml | 2 ++ .github/workflows/samples-kotlin.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/samples-dart.yaml b/.github/workflows/samples-dart.yaml index a1392d65e7c8..1ac6441c025e 100644 --- a/.github/workflows/samples-dart.yaml +++ b/.github/workflows/samples-dart.yaml @@ -9,6 +9,8 @@ on: branches: - master - '[5-9]+.[0-9]+.x' + paths: + - 'samples/openapi3/client/petstore/dart*/**' jobs: tests-dart-2-10: diff --git a/.github/workflows/samples-kotlin.yaml b/.github/workflows/samples-kotlin.yaml index faa5062c5530..21114c9b3049 100644 --- a/.github/workflows/samples-kotlin.yaml +++ b/.github/workflows/samples-kotlin.yaml @@ -9,6 +9,8 @@ on: branches: - master - '[5-9]+.[0-9]+.x' + paths: + - 'samples/client/petstore/kotlin*/**' env: GRADLE_VERSION: 6.9