Fixed mutation tests in ci workflow

This commit is contained in:
Alejandro Celaya 2020-12-15 10:01:15 +01:00
parent d39512732a
commit ec3ad8412c
2 changed files with 2 additions and 3 deletions

View file

@ -44,7 +44,7 @@ jobs:
with: with:
node-version: 14.15 node-version: 14.15
- run: npm ci - run: npm ci
- run: MUTATION_FILES=$(git diff origin/main --name-only | grep -E 'src\/(.*).(ts|tsx)$' | paste -sd ",") npm run mutate:ci - run: npm run mutate -- --mutate=$(git diff origin/main --name-only | grep -E 'src\/(.*).(ts|tsx)$' | paste -sd ",")
build-docker-image: build-docker-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -17,8 +17,7 @@
"test": "node scripts/test.js --env=jsdom --colors", "test": "node scripts/test.js --env=jsdom --colors",
"test:ci": "npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary --coverageReporters=clover", "test:ci": "npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary --coverageReporters=clover",
"test:pretty": "npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary --coverageReporters=html", "test:pretty": "npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary --coverageReporters=html",
"mutate": "./node_modules/.bin/stryker run --concurrency 4", "mutate": "./node_modules/.bin/stryker run --concurrency 4"
"mutate:ci": "npm run mutate -- --mutate=$MUTATION_FILES"
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^5.15.1", "@fortawesome/fontawesome-free": "^5.15.1",