Skip to content

Commit

Permalink
add playwright report artifact to CI
Browse files Browse the repository at this point in the history
co-authored by: Ada Mandala <ada@prospective.dev>
  • Loading branch information
tomjakubowski authored and ada-x64 committed Feb 23, 2024
1 parent ea2b6a3 commit 44000eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,16 @@ jobs:
- name: WebAssembly Test
run: yarn test_js --ci

######################
# Fancy HTML reports #
######################
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: tools/perspective-test/playwright-report/
retention-days: 30

############################# ##############################
#~~~~~~~~~~~~~~~~~~~~~~~~~~~# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~/########\~~~~~~~# #~~~~~~~~~|##########|~~~~~~~#
Expand Down
2 changes: 1 addition & 1 deletion tools/perspective-test/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
quiet: true,
reporter: process.env.CI ? "github" : "dot",
reporter: process.env.CI ? [["github"], ["html"]] : [["dot"]],
projects: PROJECTS,
outputDir: "dist/results",
use: {
Expand Down

0 comments on commit 44000eb

Please sign in to comment.