The lint-and-test job was running tests twice: - 'Backend unit tests' ran tests without coverage - 'Backend coverage' ran the same tests again with JaCoCo - 'Frontend unit tests' ran tests without coverage - 'Frontend coverage' ran the same tests again with v8 coverage This wasted ~2x test time for no benefit since coverage steps already run all tests. - Remove 'Backend unit tests' and 'Frontend unit tests' steps - Keep only coverage steps (jacocoTestCoverageVerification and test:coverage) - Add artifact upload steps for both coverage HTML reports: - backend-coverage: backend/build/reports/jacoco/test/html/ - frontend-coverage: frontend/coverage/ - 7-day retention to avoid storage bloat Result: lint-and-test job runs faster (no duplicate test runs) and produces downloadable HTML coverage reports visible in the Forgejo Actions UI. |
||
|---|---|---|
| .. | ||
| ci.yml | ||