Skip to content

Commit 9da481f

Browse files
committed
Merge branch main into mat-response-additions
2 parents 9cba39e + fba9139 commit 9da481f

File tree

8 files changed

+32
-15
lines changed

8 files changed

+32
-15
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [egil]

.github/workflows/ci.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107

108108
- name: Test Report
109109
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'))
111111
with:
112112
name: test-results
113113
path: ${{ env.TestResultsDirectory }}/**/*.trx
@@ -142,25 +142,24 @@ jobs:
142142

143143
- name: Run Stryker.NET
144144
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')
146146
run: |
147147
cd test/Htmxor.Tests
148148
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
149152
150153
- name: Run Stryker.NET
151154
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'
153156
run: |
154157
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 }}
158159
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
161160
162161
- name: Stryker Report
163-
if: github.actor != 'dependabot[bot]' && (success() || failure()) && github.repository == 'egil/Htmxor'
162+
if: steps.strykerLocal.outcome == 'success'
164163
uses: Sibz/github-status-action@v1
165164
with:
166165
authToken: ${{secrets.GITHUB_TOKEN}}

samples/HtmxBlazorSSR/Components/_Imports.razor

-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
@using HtmxBlazorSSR.Components
1010
@using HtmxBlazorSSR.Components.FlashMessages
1111
@using Htmxor
12-
@using Htmxor.Configuration
1312
@using Htmxor.Components

src/Htmxor/Components/HtmxHeadOutlet.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System.Text.Json;
2-
using Htmxor.Configuration.Serialization;
2+
using Htmxor.Serialization;
33
using Microsoft.AspNetCore.Components;
44
using Microsoft.Extensions.DependencyInjection;
55

src/Htmxor/HtmxConfig.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Text.Json.Serialization;
33
using System.Text.Json.Serialization.Metadata;
44
using Htmxor.Antiforgery;
5-
using Htmxor.Configuration.Serialization;
65

76
namespace Htmxor;
87

src/Htmxor/Http/HtmxResponse.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Runtime.CompilerServices;
33
using System.Text;
44
using System.Text.Json;
5-
using Htmxor.Configuration.Serialization;
5+
using Htmxor.Serialization;
66
using Microsoft.AspNetCore.Http;
77
using Microsoft.AspNetCore.Http.Json;
88
using Microsoft.AspNetCore.Routing;

src/Htmxor/Serialization/HtmxJsonSerializerContext.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
using System.Text.Json.Serialization;
22
using Htmxor.Http;
3-
using Htmxor.Serialization;
43

5-
namespace Htmxor.Configuration.Serialization;
4+
namespace Htmxor.Serialization;
65

76
[JsonSourceGenerationOptions(
87
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,

stryker-config-no-dashboard.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"stryker-config": {
3+
"project": "src/Htmxor/Htmxor.csproj",
4+
"mutate": [
5+
"!**/System.*/*"
6+
],
7+
"language-version": "Preview",
8+
"target-framework": "net8.0",
9+
"mutation-level": "Complete",
10+
"reporters": [
11+
"markdown",
12+
"html"
13+
],
14+
"thresholds": {
15+
"high": 80,
16+
"low": 60,
17+
"break": 0
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)