Skip to content

Commit c2d8dd8

Browse files
Adding codecov and .npmignore
1 parent 0051b5b commit c2d8dd8

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/coverage.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: HyperMath CodeCov
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
run:
10+
name: 'Build, '
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: 'Checkout Repository'
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: 'Setup Node'
18+
uses: actions/setup-node@v4
19+
- name: 'Install dependencies'
20+
run: npm install
21+
- name: 'Run tests'
22+
run: npm run test
23+
- name: 'Upload coverage to Codecov'
24+
uses: codecov/codecov-action@v4
25+
env:
26+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.npmignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# .npmignore
2+
src/
3+
test/
4+
.eslintrc
5+
.prettierrc
6+
tsconfig.json

0 commit comments

Comments
 (0)