0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added codecov.io coverage uploader to CI

refs linear.app/tryghost/issue/CORE-74/improve-the-test-situation

- this commit adds the codecov GitHub Action into CI so we can upload
  coverage reports
- the coverage files need to be in XML for them to work with
  codecov, so this commit also adds cobertura (XML) as a reporter
This commit is contained in:
Daniel Lockyer 2021-10-20 12:06:44 +02:00
parent 85ffb985fc
commit a83bcf9869
2 changed files with 4 additions and 1 deletions

View file

@ -22,7 +22,9 @@ jobs:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
- run: yarn install - run: yarn install
- run: yarn build - run: yarn build
- run: yarn test - run: yarn test:ci
- uses: codecov/codecov-action@v2
- uses: daniellockyer/action-slack-build@master - uses: daniellockyer/action-slack-build@master
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main' if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'

View file

@ -69,6 +69,7 @@
}, },
"jest": { "jest": {
"coverageReporters": [ "coverageReporters": [
"cobertura",
"text-summary", "text-summary",
"html" "html"
] ]