Skip to content

Commit 9687764

Browse files
authored
Merge pull request #43 from sectsect/enhance-playwright
ci(release): add playwright report upload as artifact
2 parents 87e5a21 + a264411 commit 9687764

5 files changed

Lines changed: 21 additions & 0 deletions

File tree

.changeset/two-dolls-joke.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@sect/solid-hiding-header": patch
3+
---
4+
5+
.
6+
7+
- feat(e2e): add playwright show-report script
8+
- ci(release): add playwright report upload as artifact

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848

4949
- name: Run E2E Tests
5050
run: pnpm test:e2e
51+
52+
- name: Upload Playwright Report
53+
uses: actions/upload-artifact@v4
54+
if: ${{ !cancelled() }}
55+
with:
56+
name: playwright-report
57+
path: ./apps/solidjs-boilerplate/playwright-report/
58+
retention-days: 30
5159

5260
# - name: Upload app coverage to Codecov
5361
# uses: codecov/codecov-action@v3

apps/solidjs-boilerplate/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"test:watch": "vitest",
1212
"coverage": "vitest run --coverage",
1313
"test:e2e": "playwright test",
14+
"test:e2e:report": "playwright show-report",
1415
"lint": "eslint --ext .ts,tsx",
1516
"lint:fix": "eslint --fix --ext .ts,tsx",
1617
"lint:css": "stylelint src/**/*{,.*}.{css,scss} --fix",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"test": "turbo test",
66
"test:watch": "turbo test:watch",
77
"test:e2e": "turbo test:e2e --filter=solidjs-boilerplate",
8+
"test:e2e:report": "turbo test:e2e:report --filter=solidjs-boilerplate",
89
"coverage": "turbo coverage",
910
"lint": "turbo lint",
1011
"lint:fix": "turbo lint:fix",

turbo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"dependsOn": ["^build"],
2222
"cache": false
2323
},
24+
"test:e2e:report": {
25+
"cache": false
26+
},
2427
"coverage": {
2528
"outputs": ["coverage/**"],
2629
"dependsOn": ["^build"]

0 commit comments

Comments
 (0)