Skip to content

Commit

Permalink
Update workflows, try fix mutation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleighAdams committed Jul 27, 2024
1 parent 52c4044 commit 1c6e550
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
with:
fetch-depth: '0'

- name: Setup .NET 6
uses: actions/setup-dotnet@v1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 6.x

- name: Setup Verlite
run: |
Expand Down Expand Up @@ -76,10 +76,10 @@ jobs:
with:
fetch-depth: '0'

- name: Setup .NET 6
uses: actions/setup-dotnet@v1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 6.x

- name: Setup Verlite
run: |
Expand Down
31 changes: 20 additions & 11 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
with:
fetch-depth: '0'

- name: Setup .NET 6
uses: actions/setup-dotnet@v1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 6.x

- name: Restore
run: dotnet restore
Expand Down Expand Up @@ -70,27 +70,36 @@ jobs:
with:
fetch-depth: '0'

- name: Setup .NET 6
uses: actions/setup-dotnet@v1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 6.x

- name: Mutation Test
run: |
dotnet tool install --global dotnet-stryker --version 1.5.1 # TODO: remove the version constraint
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/ \;
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

- name: Archive mutation output
if: success() || failure()
run: |
cd tests/UnitTests
mkdir -p ../../artifacts
find StrykerOutput -name mutation-report.html -exec cp {} ../../artifacts/ \;
if [[ -d StrykerOutput ]]; then
mv StrykerOutput ../../artifacts/StrykerOutput
fi
- name: Upload Artifacts
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: artifacts
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
with:
fetch-depth: '0'

- name: Setup .NET 6
uses: actions/setup-dotnet@v1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 6.x

- name: Setup NuGet
run: |
Expand Down

0 comments on commit 1c6e550

Please sign in to comment.