Skip to content

Commit b999863

Browse files
committed
Windows tests
1 parent 4d6e361 commit b999863

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

.github/workflows/dotnet-build-test.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,12 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
13-
steps:
14-
- uses: actions/checkout@v4
15-
16-
- name: Setup .NET
17-
uses: actions/setup-dotnet@v3
18-
with:
19-
dotnet-version: |
20-
8.0.x
21-
22-
- name: Restore dependencies
23-
run: dotnet restore
24-
working-directory: ./
25-
26-
- name: Build
27-
run: dotnet build Reown.NoUnity.slnf --no-restore
28-
working-directory: ./
29-
3010
test:
31-
needs: build
32-
runs-on: ubuntu-latest
3311
strategy:
3412
matrix:
13+
os: [ubuntu-latest, windows-latest]
3514
test-type: [unit-tests, integration-tests]
15+
runs-on: ${{ matrix.os }}
3616

3717
steps:
3818
- uses: actions/checkout@v4
@@ -47,4 +27,4 @@ jobs:
4727
uses: ./.github/actions/test-dotnet
4828
with:
4929
type: ${{ matrix.test-type }}
50-
project-id: ${{ secrets.PROJECT_ID }}
30+
project-id: ${{ secrets.PROJECT_ID }}

test/Reown.Sign.Test/CacaoTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ public void FormatMessage_WithoutRecap_ReturnsExpectedMessage()
4040
Not Before: 2024-02-19T09:29:21.394Z
4141
""";
4242

43+
// Normalize line endings
44+
var normalizedMessage = expectedMessage.Replace("\r\n", "\n");
45+
4346
var cacaoObject = new CacaoObject(new CacaoHeader(), payload, new CacaoSignature(CacaoSignatureType.Eip1271, "--"));
4447
var formattedMessage = cacaoObject.FormatMessage();
4548

46-
Assert.Equal(expectedMessage, formattedMessage);
49+
Assert.Equal(normalizedMessage, formattedMessage);
4750
}
4851
}

0 commit comments

Comments
 (0)