chore: add coverage GitHub action (#185)
* chore: use codacy coverage reporter via GH Action Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
parent
0fe57d123a
commit
349fe8e9bd
|
@ -0,0 +1,22 @@
|
|||
name: Code Coverage
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js 12.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
- run: npm ci
|
||||
- run: npm run build --if-present
|
||||
- run: npm run coverage-publish
|
||||
env:
|
||||
CODACY_PROJECT_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}}
|
Loading…
Reference in New Issue