Skip to content

Commit

Permalink
Add Stryker logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleighAdams committed Dec 1, 2022
1 parent 6bedd1a commit 61c1b2e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ definitions:
dotnet tool install --global dotnet-stryker --version 3.2.0
cd tests/UnitTests
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
dotnet stryker --reporter html --reporter dashboard --reporter progress --version master
dotnet stryker --reporter html --reporter dashboard --reporter progress --version master --log-to-file
else
dotnet stryker --reporter html --reporter progress
dotnet stryker --reporter html --reporter progress --log-to-file
fi
mkdir -p ../../artifacts
find StrykerOutput -name mutation-report.html -exec cp {} ../../artifacts/ \;
zip -r -q StrykerOutput.zip StrykerOutput
mv StrykerOutput.zip ../../artifacts/StrykerOutput.zip
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ jobs:
dotnet tool install --global dotnet-stryker --version 3.2.0
cd tests/UnitTests
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
dotnet stryker --reporter html --reporter dashboard --reporter progress --version master
dotnet stryker --reporter html --reporter dashboard --reporter progress --version master --log-to-file
else
dotnet stryker --reporter html --reporter progress
dotnet stryker --reporter html --reporter progress --log-to-file
fi
mkdir -p ../../artifacts
find StrykerOutput -name mutation-report.html -exec cp {} ../../artifacts/ \;
zip -r -q StrykerOutput.zip StrykerOutput
mv StrykerOutput.zip ../../artifacts/StrykerOutput.zip
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ jobs:
dotnet tool install --global dotnet-stryker --version 3.2.0
cd tests/UnitTests
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
dotnet stryker --reporter html --reporter dashboard --reporter progress --version master
dotnet stryker --reporter html --reporter dashboard --reporter progress --version master --log-to-file
else
dotnet stryker --reporter html --reporter progress
dotnet stryker --reporter html --reporter progress --log-to-file
fi
mkdir -p ../../artifacts
find StrykerOutput -name mutation-report.html -exec cp {} ../../artifacts/ \;
zip -r -q StrykerOutput.zip StrykerOutput
mv StrykerOutput.zip ../../artifacts/StrykerOutput.zip
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

Expand Down

0 comments on commit 61c1b2e

Please sign in to comment.