diff --git a/.github/workflows/compiler_playground.yml b/.github/workflows/compiler_playground.yml index 9e7b5b438a..81c6c3ee42 100644 --- a/.github/workflows/compiler_playground.yml +++ b/.github/workflows/compiler_playground.yml @@ -6,7 +6,7 @@ on: pull_request: paths: - compiler/** - - .github/workflows/compiler-playground.yml + - .github/workflows/compiler_playground.yml concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} @@ -44,10 +44,12 @@ jobs: - name: yarn install playground run: yarn install --frozen-lockfile - run: npx playwright install --with-deps chromium - - run: yarn test + - run: CI=true yarn test + - run: ls -R test-results + if: '!cancelled()' - name: Archive test results if: '!cancelled()' uses: actions/upload-artifact@v4 with: name: test-results - path: test-results + path: compiler/apps/playground/test-results diff --git a/compiler/apps/playground/playwright.config.js b/compiler/apps/playground/playwright.config.js index d620a37746..533ebd0b3d 100644 --- a/compiler/apps/playground/playwright.config.js +++ b/compiler/apps/playground/playwright.config.js @@ -36,6 +36,10 @@ export default defineConfig({ reuseExistingServer: !process.env.CI, }, + // 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot' + // default 'list' when running locally + reporter: process.env.CI ? 'github' : 'list', + use: { // Use baseURL so to make navigations relative. // More information: https://playwright.dev/docs/api/class-testoptions#test-options-base-url