diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 57752aa68..7f6855980 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,7 +34,6 @@ on: - cron: "0 12 * * *" env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true SKIP_DIST: ${{ github.event_name == 'pull_request' || github.event_name == 'schedule' }} concurrency: @@ -216,6 +215,7 @@ jobs: run: npx playwright test e2e/samples.spec.ts env: CI: true + TEST_ALL_SAMPLES: "true" - name: Upload Test Report Artifact uses: actions/upload-artifact@v4 diff --git a/e2e/samples.spec.ts b/e2e/samples.spec.ts index bd5493604..f4a4d5f11 100644 --- a/e2e/samples.spec.ts +++ b/e2e/samples.spec.ts @@ -42,6 +42,13 @@ const getChangedSampleFolders = (): string[] => { 'find-changes.sh' ); + if (process.env.TEST_ALL_SAMPLES === 'true') { + console.log( + 'TEST_ALL_SAMPLES is set. Running tests for all samples.' + ); + return getAllSampleFolders(); + } + if (!fs.existsSync(scriptPath)) { console.warn( `Warning: find-changes.sh not found at ${scriptPath}. Running tests for all samples.`