Skip to content

Commit 4fd74ca

Browse files
Merge pull request #4 from mindandbrain/dev/reporterror
Add support for reporterror.js
2 parents 2d06733 + a52d8a0 commit 4fd74ca

File tree

21 files changed

+4458
-540
lines changed

21 files changed

+4458
-540
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- master
1010

1111
jobs:
12-
build:
12+
test:
1313
runs-on: ubuntu-latest
1414

1515
timeout-minutes: 30
@@ -22,9 +22,19 @@ jobs:
2222
node-version: "15.x"
2323

2424
- run: npm ci
25+
2526
- run: npm run build
2627

2728
- uses: actions/upload-artifact@v2
2829
with:
2930
name: index.html
3031
path: dist/index.html
32+
33+
- run: npm test
34+
35+
- name: Upload coverage to Codecov
36+
uses: codecov/codecov-action@v1
37+
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}
39+
file: ./coverage/clover.xml
40+
fail_ci_if_error: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ node_modules
66
.tscc_temp
77
.icons
88

9+
coverage
10+
911
# local env files
1012
.env.local
1113
.env.*.local

jest.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
roots: [
3+
"src/"
4+
],
5+
collectCoverage: true,
6+
coverageDirectory: "coverage",
7+
testMatch: [
8+
"**/__tests__/**/*.+(ts|tsx|js)",
9+
"**/?(*.)+(spec|test).+(ts|tsx|js)"
10+
],
11+
transform: {
12+
"^.+\\.(ts|tsx)$": "ts-jest"
13+
},
14+
};

0 commit comments

Comments
 (0)