diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6b9d1b..04c7483 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,9 +47,10 @@ jobs: run: npm test ./__tests__/ProjectCard.E2E.test.js - name: '[E2E test] contacts' run: npm test ./__tests__/Contacts.E2E.test.js - - name: update code coverage - run: npm i -D puppeteer puppeteer-to-istanbul nyc && node ./code-coverage.js && nyc report --reporter=html - + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} linting: name: Linting diff --git a/README.md b/README.md index d7f9ec7..a8f0c12 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ unit test coverage: [![codecov](https://codecov.io/gh/cse110-sp24-group31/Dev-Journal/graph/badge.svg?token=I7LZVX58TA)](https://codecov.io/gh/cse110-sp24-group31/Dev-Journal) puppeteer code coverage (E2E and system test): -[link to converage report](./coverage/index.html) +[link to converage report](https://cse110-sp24-group31.github.io/Dev-Journal/coverage/index.html) ![code coverage image](https://codecov.io/gh/cse110-sp24-group31/Dev-Journal/graphs/sunburst.svg?token=I7LZVX58TA)