You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# note the flags passed to jest. if you are running your tests with
224
+
# yarn or npm, you should set the equivalent flags there.
225
+
run: docker compose -f docker-compose.ci.yml run -v ${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE} --workdir ${GITHUB_WORKSPACE} tests jest --coverage --ci --json --testLocationInResults --outputFile=report.json
226
+
227
+
- name: Collect test coverage
228
+
uses: ArtiomTr/jest-coverage-report-action@v2
229
+
if: always() # we should still try to run this even if there are test failures
230
+
with:
231
+
coverage-file: ./report.json
232
+
base-coverage-file: ./report.json
233
+
```
234
+
188
235
## Opt-out coverage comparison features
189
236
190
237
You can opt-out coverage comparison features to speed-up action. To achieve this, firstly, manually collect coverage to `report.json` file. Then, specify these options for the action:
0 commit comments