@samitouri / QOS-React / commits / ee10c74824

[playground] Fix incorrect ci path and change reporter (#31572)

--- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31572). * #31573 * __->__ #31572

lauren committed Nov 18, 2024 at 19:17 UTC ee10c74824fa9631032f031b20ad1f208ccb4aca
2 files changed +9 -3
.github/workflows/compiler_playground.yml
+5 -3
@@ -6,7 +6,7 @@ on:
6 pull_request:
7 paths:
8 - compiler/**
9 - - .github/workflows/compiler-playground.yml
9 + - .github/workflows/compiler_playground.yml
10
11 concurrency:
12 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
@@ -44,10 +44,12 @@ jobs:
44 - name: yarn install playground
45 run: yarn install --frozen-lockfile
46 - run: npx playwright install --with-deps chromium
47 - - run: yarn test
47 + - run: CI=true yarn test
48 + - run: ls -R test-results
49 + if: '!cancelled()'
50 - name: Archive test results
51 if: '!cancelled()'
52 uses: actions/upload-artifact@v4
53 with:
54 name: test-results
53 - path: test-results
55 + path: compiler/apps/playground/test-results
compiler/apps/playground/playwright.config.js
+4
@@ -36,6 +36,10 @@ export default defineConfig({
36 reuseExistingServer: !process.env.CI,
37 },
38
39 + // 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'
40 + // default 'list' when running locally
41 + reporter: process.env.CI ? 'github' : 'list',
42 +
43 use: {
44 // Use baseURL so to make navigations relative.
45 // More information: https://playwright.dev/docs/api/class-testoptions#test-options-base-url