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