8000 chore: add coverage GitHub action (#185) · cloudevents/sdk-javascript@349fe8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 349fe8e

Browse files
authored
chore: add coverage GitHub action (#185)
* chore: use codacy coverage reporter via GH Action Signed-off-by: Lance Ball <lball@redhat.com>
1 parent 0fe57d1 commit 349fe8e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Code Coverage
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Use Node.js 12.x
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 12.x
18+
- run: npm ci
19+
- run: npm run build --if-present
20+
- run: npm run coverage-publish
21+
env:
22+
CODACY_PROJECT_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}}

0 commit comments

Comments
 (0)
0