Skip to content

Commit b199f34

Browse files
committed
github action
1 parent 5a81854 commit b199f34

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
12+
- name: install .NET Core 6/7 SDK
13+
uses: actions/setup-dotnet@v2
14+
with:
15+
dotnet-version: |
16+
6.0.x
17+
7.0.x
18+
19+
- name: checkout repository
20+
uses: actions/checkout@v2
21+
22+
- name: dotnet restore
23+
run: dotnet restore
24+
25+
- name: build
26+
run: dotnet build --configuration Release --no-restore
27+
28+
- name: test
29+
run: dotnet test --configuration Release --no-build
30+
31+
- name: test results
32+
uses: EnricoMi/publish-unit-test-result-action@v2
33+
id: test-results
34+
if: always()
35+
with:
36+
check_name: tests results
37+
trx_files: "**/test-results/**/*.trx"

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<Nullable>enable</Nullable>
1818
<NoWarn>$(NoWarn);CA1303;MSB3884;</NoWarn>
1919
<ImplicitUsings>enable</ImplicitUsings>
20+
21+
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
22+
<VSTestResultsDirectory>$(MSBuildThisFileDirectory)test-results/$(TargetFramework)</VSTestResultsDirectory>
2023
</PropertyGroup>
2124

2225
<ItemGroup>

Thinktecture.EntityFrameworkCore.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ ProjectSection(SolutionItems) = preProject
2525
Directory.Build.props = Directory.Build.props
2626
.gitignore = .gitignore
2727
icon.png = icon.png
28+
.github\workflows\main.yml = .github\workflows\main.yml
2829
EndProjectSection
2930
EndProject
3031
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Thinktecture.EntityFrameworkCore.SqlServer.Testing", "src\Thinktecture.EntityFrameworkCore.SqlServer.Testing\Thinktecture.EntityFrameworkCore.SqlServer.Testing.csproj", "{4A68E5B4-B0C9-4076-875A-C88AFAC5EB5F}"

0 commit comments

Comments
 (0)