Merge pull request #3597 from paperless-ngx/frontend-unit-testing

Development: frontend unit testing
This commit is contained in:
shamoon
2023-06-17 21:13:34 -07:00
committed by GitHub
147 changed files with 14868 additions and 187 deletions

View File

@@ -199,10 +199,29 @@ jobs:
name: Linting checks
run: cd src-ui && npm run lint
-
name: Run Playwright tests
name: Run Jest unit tests
run: cd src-ui && npm run test
-
name: Upload Jest coverage
if: always()
uses: actions/upload-artifact@v3
with:
name: jest-coverage-report
path: src-ui/coverage
-
name: Upload frontend coverage to Codecov
if: always()
uses: codecov/codecov-action@v3
with:
# not required for public repos, but intermittently fails otherwise
token: ${{ secrets.CODECOV_TOKEN }}
# future expansion
flags: frontend
-
name: Run Playwright e2e tests
run: cd src-ui && npx playwright test
-
name: Upload test results
name: Upload Playwright test results
if: always()
uses: actions/upload-artifact@v3
with: