chore: export coverage report

This commit is contained in:
DarkSky 2023-02-05 19:05:43 +08:00
parent e4905b317a
commit 1d1f211d37
2 changed files with 4 additions and 2 deletions

View File

@ -44,6 +44,9 @@ jobs:
# NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }} # NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
# NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }} # NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
- name: Collect code coverage report
run: pnpm exec nyc report -t .nyc_output --report-dir .coverage --reporter=lcov
- name: Upload e2e test coverage results - name: Upload e2e test coverage results
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
with: with:

View File

@ -14,11 +14,10 @@
"start": "pnpm --filter @affine/app start", "start": "pnpm --filter @affine/app start",
"lint": "pnpm --filter @affine/app lint", "lint": "pnpm --filter @affine/app lint",
"test": "playwright test", "test": "playwright test",
"test:coverage": "cross-env COVERAGE=true pnpm test && nyc report -t .nyc_output --report-dir .coverage --reporter=lcov", "test:coverage": "cross-env COVERAGE=true pnpm test -- --forbid-only",
"test:unit": "playwright test --config=playwright.config.unit.ts", "test:unit": "playwright test --config=playwright.config.unit.ts",
"postinstall": "husky install", "postinstall": "husky install",
"notify": "node --experimental-modules scripts/notify.mjs", "notify": "node --experimental-modules scripts/notify.mjs",
"check:ci": "pnpm lint & pnpm test",
"update:blocksuite": "pnpm i --filter @affine/app --filter @affine/datacenter @blocksuite/blocks@nightly @blocksuite/store@nightly && pnpm i --filter @affine/app @blocksuite/editor@nightly" "update:blocksuite": "pnpm i --filter @affine/app --filter @affine/datacenter @blocksuite/blocks@nightly @blocksuite/store@nightly && pnpm i --filter @affine/app @blocksuite/editor@nightly"
}, },
"lint-staged": { "lint-staged": {