fix(workflow): lack of build step in release workflow #32
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: Code coverage | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
id: cache | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: cache-node-modules-${{ hashFiles('package-lock.json') }} | |
- uses: actions/setup-node@v2 | |
if: steps.cache.outputs.cache-hit != 'true' | |
with: | |
node-version: 14.x | |
- name: Install Packages | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Run coverage | |
run: npm run coverage | |
- uses: codecov/codecov-action@v1 | |
with: | |
files: ./coverage/clover.xml |