From 976f9b9cc92b809cc4e3c72abf6e12cec2c3dcfb Mon Sep 17 00:00:00 2001 From: oklinov Date: Wed, 13 May 2026 15:32:07 +0200 Subject: [PATCH] feat: add test-files-glob input --- .github/workflows/platform-tests.yaml | 6 +++++- .github/workflows/pr-build-test.yaml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/platform-tests.yaml b/.github/workflows/platform-tests.yaml index ed23bcc..fdab22f 100644 --- a/.github/workflows/platform-tests.yaml +++ b/.github/workflows/platform-tests.yaml @@ -7,6 +7,10 @@ on: type: string default: "" required: false + test-files-glob: + type: string + default: "" + required: false working-directory: type: string default: . @@ -41,7 +45,7 @@ jobs: run: | set +e export RUN_ALL_PLATFORM_TESTS=1 - npx vitest ./test/platform/${{ inputs.subtest }} \ + npx vitest ./test/platform/${{ inputs.test-files-glob || inputs.subtest }} \ --run \ --reporter=default \ --reporter=json \ diff --git a/.github/workflows/pr-build-test.yaml b/.github/workflows/pr-build-test.yaml index aa7d273..b33b594 100644 --- a/.github/workflows/pr-build-test.yaml +++ b/.github/workflows/pr-build-test.yaml @@ -14,6 +14,10 @@ on: type: boolean default: false required: false + test-files-glob: + type: string + default: "" + required: false concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -65,7 +69,7 @@ jobs: run: | export ACTOR_BUILDS='${{ steps.build.outputs.actor_builds }}' export RUN_PLATFORM_TESTS=1 - npx vitest ./test/platform --run --maxConcurrency 20 --fileParallelism=true --maxWorkers 100 + npx vitest ./test/platform/${{ inputs.test-files-glob }} --run --maxConcurrency 20 --fileParallelism=true --maxWorkers 100 # NOTE: This is an optimization that if we did functional changes and later only cosmetic changes (e.g. dev readme), we will compare changes files only for the last commit. This must run after tests because we want to cache the latest commit only if the tests are successful - name: Store last validated commit to cache