Skip to content

Commit da9ac7d

Browse files
Add mutation testing (#25)
* Add mutation testing with stryker * Add job to upload stryker reports * Tweak Stryker workflow * Fix artifact path * Fix job name
1 parent 0938a9a commit da9ac7d

File tree

9 files changed

+2667
-139
lines changed

9 files changed

+2667
-139
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: stryker-javascript
2+
3+
on:
4+
push:
5+
pull_request:
6+
types:
7+
- merged
8+
branches:
9+
- main
10+
11+
jobs:
12+
stryker:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: '16'
19+
cache: 'npm'
20+
cache-dependency-path: javascript/package-lock.json
21+
- run: npm install
22+
working-directory: javascript
23+
- run: npm run stryker
24+
working-directory: javascript
25+
- uses: actions/upload-artifact@v2
26+
with:
27+
name: stryker-report
28+
path: |
29+
javascript/reports/mutation/html/index.html
30+
javascript/reports/mutation/mutation.json

javascript/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ storybook-static
1616
*-go
1717
*.iml
1818
.vscode-test
19+
20+
# stryker temp files
21+
.stryker-tmp
22+
reports

0 commit comments

Comments
 (0)