Fix coverage on clean clone #502
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: | |
- 16 | |
- 14 | |
- 12 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: yarn install and test | |
run: | | |
node --version | |
mkdir -p ./coverage/ | |
yarn | |
yarn test | |
env: | |
CI: true | |
FORCE_COLOR: 1 | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v2 | |
with: | |
file: ./coverage/clover.xml |