Skip to content

Commit 39bbecd

Browse files
committed
fix(ci): added reference for env variable to mutator ci
1 parent 1263a67 commit 39bbecd

File tree

7 files changed

+1191
-340
lines changed

7 files changed

+1191
-340
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- run: sudo apt-get install -y tzdata
1818
- run: sudo ln -fs /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
1919
- run: yarn
20+
2021
- run: yarn test-ci
2122
- name: Coveralls
2223
uses: coverallsapp/github-action@v2

.github/workflows/mutator.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@
22
name: Mutator CI
33
on:
44
push:
5-
branches:
6-
- main
7-
paths-ignore:
8-
- .github/workflows/mutator.yaml
9-
- .github/workflows/main.yaml
10-
env:
11-
SERVICE_HOST: "dashboard.stryker-mutator.io"
12-
PROJECT: "nodejs-hexagonal-boilerplate"
13-
API_KEY: ${{ secrets.STRIKER_MUTATOR_TOKEN }}
14-
5+
# branches:
6+
# - main
7+
# paths-ignore:
8+
# - .github/workflows/mutator.yaml
9+
# - .github/workflows/main.yaml
1510
jobs:
1611
mutator:
1712
runs-on: ubuntu-latest
@@ -37,3 +32,5 @@ jobs:
3732
run: |
3833
yarn stryker-mutate --reporters dashboard \
3934
--dashboard.version ${{ steps.extract_branch.outputs.branch }}
35+
env:
36+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRIKER_MUTATOR_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ reports/
1515
terraform.tfstate
1616
terraform.tfstate.backup
1717
.terraform/
18+
.stryker-tmp/

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Boilerplate de Arquitetura Hexagonal
22

33
[![Coverage Status](https://coveralls.io/repos/github/claytonsilva/nodejs-hexagonal-boilerplate/badge.svg?branch=master)](https://coveralls.io/github/claytonsilva/nodejs-hexagonal-boilerplate?branch=master)
4-
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fclaytonsilva%2Fnodejs-hexagonal-boilerplate%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/claytonsilva/nodejs-hexagonal-boilerplate/master)
4+
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fclaytonsilva%2Fnodejs-hexagonal-boilerplate%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/claytonsilva/nodejs-hexagonal-boilerplate/main)
55
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
66
[![Conventional Changelog](https://img.shields.io/badge/changelog-conventional-brightgreen.svg)](http://conventional-changelog.github.io)
77
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
8-
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fclaytonsilva%2Fnodejs-hexagonal-boilerplate%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/claytonsilva/nodejs-hexagonal-boilerplate/main)
98
![gh_actions](https://github.com/claytonsilva/nodejs-hexagonal-boilerplate/actions/workflows/main.yaml/badge.svg)
109

1110
## Inspiração

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@
6767
"@babel/preset-env": "^7.2.3",
6868
"@commitlint/cli": "^7.2.1",
6969
"@commitlint/config-conventional": "^7.1.2",
70-
"@stryker-mutator/core": "^3.2.4",
71-
"@stryker-mutator/javascript-mutator": "^3.2.4",
72-
"@stryker-mutator/jest-runner": "^3.2.4",
70+
"@stryker-mutator/core": "^9.0",
71+
"@stryker-mutator/jest-runner": "^9.0",
7372
"@types/body-parser": "^1.17.1",
7473
"@types/express": "^4.17.2",
7574
"@types/jest": "^25.1.4",

stryker.conf.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@
33
*/
44

55
module.exports = {
6-
mutator: 'javascript',
76
packageManager: 'npm',
87
reporters: ['html', 'clear-text', 'progress', 'dashboard'],
98
testRunner: 'jest',
109
coverageAnalysis: 'off',
11-
maxConcurrentTestRunners: 2,
1210
dashboard: {
1311
project: 'github.com/claytonsilva/nodejs-hexagonal-boilerplate'
1412
},
13+
ignorePatterns: ["reports", "node_modules"],
1514
mutate: [
1615
'src/**/*.js',
1716
'!src/ports/http/**/*.js',
1817
'!src/ports/aws-lambda/**/*.js',
1918
'!src/ports/logger/**/*.js',
20-
'!src/**/*.spec.js'
19+
'!src/**/*.spec.js',
2120
],
2221
jest: {
2322
projectType: 'custom',

0 commit comments

Comments
 (0)