mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -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:
parent
85ffb985fc
commit
a83bcf9869
2 changed files with 4 additions and 1 deletions
4
ghost/portal/.github/workflows/test.yml
vendored
4
ghost/portal/.github/workflows/test.yml
vendored
|
@ -22,7 +22,9 @@ jobs:
|
|||
node-version: ${{ matrix.node }}
|
||||
- run: yarn install
|
||||
- run: yarn build
|
||||
- run: yarn test
|
||||
- run: yarn test:ci
|
||||
|
||||
- uses: codecov/codecov-action@v2
|
||||
|
||||
- uses: daniellockyer/action-slack-build@master
|
||||
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
},
|
||||
"jest": {
|
||||
"coverageReporters": [
|
||||
"cobertura",
|
||||
"text-summary",
|
||||
"html"
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue