From 88c4ce656352a5534398c8c688064a3f653ff1d7 Mon Sep 17 00:00:00 2001 From: mlischetti Date: Thu, 16 Jul 2026 16:39:01 -0300 Subject: [PATCH] W-23480663 ci: skip regression tests on PRs, run them only on master MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 2.9.8 and 2.10 regression suites (native-cli-integration-tests) run on every push and pull_request, adding significant time to PR builds. Gate both steps behind `github.ref == 'refs/heads/master'` so they run on master pushes but are skipped on PRs, where the main build + unit tests still run. Extracted from the native-bindings branch (feat/new-native-bindings) as an independent CI cost improvement — none of the new-binding plumbing from that branch is included. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0c419e6..cd0205d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,12 +45,14 @@ jobs: run: | ./gradlew --stacktrace --no-problems-report -PskipNodeTests=true build shell: bash - #Run regression tests + # Run regression tests (only on master branch to save CI time on PRs) - name: Run regression test 2.9.8 + if: github.ref == 'refs/heads/master' run: | ./gradlew --stacktrace -PweaveTestSuiteVersion=2.9.8 -DweaveSuiteVersion=2.9.8 native-cli-integration-tests:test shell: bash - name: Run regression test 2.10 + if: github.ref == 'refs/heads/master' run: | ./gradlew --stacktrace -PweaveTestSuiteVersion=2.10.0 -DweaveSuiteVersion=2.10.0 native-cli-integration-tests:test shell: bash