Skip to content

Commit

Permalink
Always archive the output
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleighAdams committed Dec 1, 2022
1 parent 61c1b2e commit 9d6f9b4
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- *checkout
- *setup-dotnet
- *mutation-test
- *mutation-test-archive
- *upload-artifacts
integration-tests:
name: 'Integration Tests'
Expand Down
1 change: 1 addition & 0 deletions .github/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- *checkout
- *setup-dotnet
- *mutation-test
- *mutation-test-archive
- *upload-artifacts
integration-tests:
name: 'Integration Tests'
Expand Down
17 changes: 13 additions & 4 deletions .github/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,21 @@ definitions:
else
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 }}

mutation-test-archive: &mutation-test-archive
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
zip -r -q StrykerOutput.zip StrykerOutput
mv StrykerOutput.zip ../../artifacts/StrykerOutput.zip
fi
publish-codecov: &publish-codecov
name: Publish Codecov
uses: codecov/codecov-action@v2
Expand All @@ -69,6 +77,7 @@ definitions:
upload-artifacts: &upload-artifacts
name: Upload Artifacts
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: artifacts
path: |
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:

- name: Upload Artifacts
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: artifacts
path: |
Expand Down Expand Up @@ -92,15 +93,23 @@ jobs:
else
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 }}

- 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
zip -r -q StrykerOutput.zip StrykerOutput
mv StrykerOutput.zip ../../artifacts/StrykerOutput.zip
fi
- name: Upload Artifacts
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: artifacts
path: |
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:

- name: Upload Artifacts
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: artifacts
path: |
Expand Down Expand Up @@ -92,15 +93,23 @@ jobs:
else
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 }}

- 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
zip -r -q StrykerOutput.zip StrykerOutput
mv StrykerOutput.zip ../../artifacts/StrykerOutput.zip
fi
- name: Upload Artifacts
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: artifacts
path: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:

- name: Upload Artifacts
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: artifacts
path: |
Expand Down

0 comments on commit 9d6f9b4

Please sign in to comment.