test on GH workflow
This commit is contained in:
14
.github/workflows/playwright.yml
vendored
14
.github/workflows/playwright.yml
vendored
@ -1,7 +1,9 @@
|
|||||||
name: Playwright Tests
|
name: Playwright Tests
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches:
|
||||||
|
- main
|
||||||
|
- ryanrosello-og/playwright-test-coverage
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
@ -375,7 +377,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
token: ${{ secrets.KITTYCAD_API_TOKEN_DEV }}
|
token: ${{ secrets.KITTYCAD_API_TOKEN_DEV }}
|
||||||
GENERATE_PLAYWRIGHT_COVERAGE: true
|
GENERATE_PLAYWRIGHT_COVERAGE: true
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
with:
|
with:
|
||||||
@ -397,8 +399,8 @@ jobs:
|
|||||||
path: .nyc_output/
|
path: .nyc_output/
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
|
|
||||||
# only run this job after all shards above have completed
|
# only run this job after all shards above have completed
|
||||||
# TBC: do we want to separate coverage reports by OS?
|
# TBC: do we want to separate coverage reports by OS?
|
||||||
# the Job below combines both chrome and webkit coverage reports
|
# the Job below combines both chrome and webkit coverage reports
|
||||||
@ -427,9 +429,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Merge all coverage reports from all shards into a single json report
|
- name: Merge all coverage reports from all shards into a single json report
|
||||||
run: npx nyc merge .all_coverage_reports ./.nyc_output/coverage.json
|
run: npx nyc merge .all_coverage_reports ./.nyc_output/coverage.json
|
||||||
|
|
||||||
- name: Generate HTML coverage report
|
- name: Generate HTML coverage report
|
||||||
run: npx nyc report --reporter=html || true
|
run: npx nyc report --reporter=html || true
|
||||||
|
|
||||||
- name: Upload Convertage HTML report
|
- name: Upload Convertage HTML report
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user