Skip to content

Commit 7715593

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

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
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: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
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
5+
# branches:
6+
# - main
7+
# paths-ignore:
8+
# - .github/workflows/mutator.yaml
9+
# - .github/workflows/main.yaml
1010
env:
11-
SERVICE_HOST: "dashboard.stryker-mutator.io"
1211
PROJECT: "nodejs-hexagonal-boilerplate"
13-
API_KEY: ${{ secrets.STRIKER_MUTATOR_TOKEN }}
14-
12+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRIKER_MUTATOR_TOKEN }}
1513
jobs:
1614
mutator:
1715
runs-on: ubuntu-latest
@@ -33,7 +31,15 @@ jobs:
3331
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" \
3432
>> $GITHUB_OUTPUT
3533
id: extract_branch
34+
- name: env
35+
run: echo "$STRYKER_DASHBOARD_API_KEY"
36+
- name: env2
37+
run: |
38+
set STRYKER_DASHBOARD_API_KEY="${{ env.STRYKER_DASHBOARD_API_KEY }}"
39+
- name: env3
40+
run: echo "$STRYKER_DASHBOARD_API_KEY"
3641
- name: Mutator run mutator
3742
run: |
3843
yarn stryker-mutate --reporters dashboard \
39-
--dashboard.version ${{ steps.extract_branch.outputs.branch }}
44+
--dashboard.version ${{ steps.extract_branch.outputs.branch }} \
45+
--dashboard.project ${{ env.PROJECT }}

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

0 commit comments

Comments
 (0)