Skip to content

Commit 9501f2f

Browse files
authored
Move to .NET Core 2.2 and add test workflow
1 parent 33690aa commit 9501f2f

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

.github/workflows/run-tests.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Run tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Setup .NET Core
13+
uses: actions/setup-dotnet@v1
14+
with:
15+
dotnet-version: 2.2.108
16+
- name: Test Release configuration
17+
run: dotnet test --configuration Release

srm/Match.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public Match(int index, int length)
1818

1919
public override bool Equals(object obj) => obj is Match other && this == other;
2020

21-
public override int GetHashCode() => System.HashCode.Combine(Index, Length);
21+
public override int GetHashCode() => (Index, Length).GetHashCode();
2222
}
2323
}

srm/srm.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.1</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
</PropertyGroup>
77

tests/tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.0</TargetFramework>
4+
<TargetFramework>netcoreapp2.2</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

unicode_table_gen/unicode_table_gen.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>netcoreapp2.2</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

0 commit comments

Comments
 (0)