@@ -107,7 +107,7 @@ jobs:
107
107
108
108
- name : Test Report
109
109
uses : dorny/test-reporter@v1
110
- if : github.actor != 'dependabot[bot] ' && (success( ) || failure()) && ${{ github.repository_owner == 'egil' }}
110
+ if : always() && (( github.event_name == 'push ' && github.ref == 'refs/heads/main' ) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'egil/Htmxor'))
111
111
with :
112
112
name : test-results
113
113
path : ${{ env.TestResultsDirectory }}/**/*.trx
@@ -142,25 +142,24 @@ jobs:
142
142
143
143
- name : Run Stryker.NET
144
144
id : strykerLocal
145
- if : github.repository == 'egil/Htmxor'
145
+ if : ( github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == ' egil/Htmxor')
146
146
run : |
147
147
cd test/Htmxor.Tests
148
148
dotnet stryker --config-file "../../stryker-config.json" --dashboard-api-key "${{ secrets.STRYKER_DASHBOARD_API_KEY }}" --version ${{ env.BRANCH_NAME }} --output ${{ env.StrykerDirectory }}
149
+ cat ${{ env.StrykerDirectory }}/reports/mutation-report.md >> $GITHUB_STEP_SUMMARY
150
+ echo "" >> $GITHUB_STEP_SUMMARY
151
+ echo "View the [full report](https://dashboard.stryker-mutator.io/reports/github.com/egil/Htmxor/${{ env.BRANCH_NAME }})." >> $GITHUB_STEP_SUMMARY
149
152
150
153
- name : Run Stryker.NET
151
154
id : strykerFork
152
- if : github.repository != 'egil/Htmxor'
155
+ if : github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'egil/Htmxor'
153
156
run : |
154
157
cd test/Htmxor.Tests
155
- dotnet stryker --config-file "../../stryker-config.json" --version ${{ env.BRANCH_NAME }} --output ${{ env.StrykerDirectory }}
156
-
157
- - run : |
158
+ dotnet stryker --config-file "../../stryker-config-no-dashboard.json" --version ${{ env.BRANCH_NAME }} --output ${{ env.StrykerDirectory }}
158
159
cat ${{ env.StrykerDirectory }}/reports/mutation-report.md >> $GITHUB_STEP_SUMMARY
159
- echo "" >> $GITHUB_STEP_SUMMARY
160
- echo "View the [full report](https://dashboard.stryker-mutator.io/reports/github.com/egil/Htmxor/${{ env.BRANCH_NAME }})." >> $GITHUB_STEP_SUMMARY
161
160
162
161
- name : Stryker Report
163
- if : github.actor != 'dependabot[bot]' && (success() || failure()) && github.repository == 'egil/Htmxor '
162
+ if : steps.strykerLocal.outcome == 'success '
164
163
uses : Sibz/github-status-action@v1
165
164
with :
166
165
authToken : ${{secrets.GITHUB_TOKEN}}
0 commit comments