Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- run: sudo apt-get install -y tzdata
- run: sudo ln -fs /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
- run: yarn

- run: yarn test-ci
- name: Coveralls
uses: coverallsapp/github-action@v2
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/mutator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@
name: Mutator CI
on:
push:
branches:
- main
paths-ignore:
- .github/workflows/mutator.yaml
- .github/workflows/main.yaml
env:
SERVICE_HOST: "dashboard.stryker-mutator.io"
PROJECT: "nodejs-hexagonal-boilerplate"
API_KEY: ${{ secrets.STRIKER_MUTATOR_TOKEN }}

# branches:
# - main
# paths-ignore:
# - .github/workflows/mutator.yaml
# - .github/workflows/main.yaml
jobs:
mutator:
runs-on: ubuntu-latest
Expand All @@ -37,3 +32,5 @@ jobs:
run: |
yarn stryker-mutate --reporters dashboard \
--dashboard.version ${{ steps.extract_branch.outputs.branch }}
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRIKER_MUTATOR_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ reports/
terraform.tfstate
terraform.tfstate.backup
.terraform/
.stryker-tmp/
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Boilerplate de Arquitetura Hexagonal

[![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)
[![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)
[![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)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![Conventional Changelog](https://img.shields.io/badge/changelog-conventional-brightgreen.svg)](http://conventional-changelog.github.io)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
[![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)
![gh_actions](https://github.com/claytonsilva/nodejs-hexagonal-boilerplate/actions/workflows/main.yaml/badge.svg)

## Inspiração
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@
"@babel/preset-env": "^7.2.3",
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
"@stryker-mutator/core": "^3.2.4",
"@stryker-mutator/javascript-mutator": "^3.2.4",
"@stryker-mutator/jest-runner": "^3.2.4",
"@stryker-mutator/core": "^9.0",
"@stryker-mutator/jest-runner": "^9.0",
"@types/body-parser": "^1.17.1",
"@types/express": "^4.17.2",
"@types/jest": "^25.1.4",
Expand Down
5 changes: 2 additions & 3 deletions stryker.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@
*/

module.exports = {
mutator: 'javascript',
packageManager: 'npm',
reporters: ['html', 'clear-text', 'progress', 'dashboard'],
testRunner: 'jest',
coverageAnalysis: 'off',
maxConcurrentTestRunners: 2,
dashboard: {
project: 'github.com/claytonsilva/nodejs-hexagonal-boilerplate'
},
ignorePatterns: ["reports", "node_modules"],
mutate: [
'src/**/*.js',
'!src/ports/http/**/*.js',
'!src/ports/aws-lambda/**/*.js',
'!src/ports/logger/**/*.js',
'!src/**/*.spec.js'
'!src/**/*.spec.js',
],
jest: {
projectType: 'custom',
Expand Down
Loading