chore(*): fix code coverage not uploaded (#9661)

Signed-off-by: Rongrong <i@rong.moe>
This commit is contained in:
Rongrong
2022-04-30 07:37:23 +08:00
committed by GitHub
parent 78a5ce1922
commit 72070d40cc
5 changed files with 14 additions and 7 deletions
+4 -3
View File
@@ -25,13 +25,14 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn
- run: npm run jest
- run: npm run jest:coverage
env:
REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/
- name: Upload coverage to Codecov
if: ${{ matrix.node-version == '16' }}
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
# with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
docs:
runs-on: ubuntu-latest