Skip to content

Commit

Permalink
[playground] Fix incorrect ci path and change reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
poteto committed Nov 18, 2024
1 parent 2a4f250 commit e3054a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/compiler_playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -44,7 +44,8 @@ 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
- name: Archive test results
if: '!cancelled()'
uses: actions/upload-artifact@v4
Expand Down
4 changes: 4 additions & 0 deletions compiler/apps/playground/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3054a4

Please sign in to comment.