Skip to content

Commit 9403982

Browse files
committed
ci: Fixed GitHub tests
1 parent 094eaa9 commit 9403982

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/pipeline.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,21 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
services:
13+
docker:
14+
image: docker:dind-rootless
15+
ports:
16+
- 12375:2375
1217
container: mcr.microsoft.com/dotnet/sdk:10.0
18+
env:
19+
TESTCONTAINERS_RYUK_DISABLED: "true"
1320
steps:
14-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v6
1522
- name: Restore dependencies
1623
run: dotnet restore
1724
- name: Build
1825
run: dotnet build Extensions.slnx --no-restore
1926
- name: Test
20-
run: dotnet test Extensions.slnx --no-build --verbosity normal --filter "FullyQualifiedName!~Fusonic.Extensions.UnitTests.EntityFrameworkCore & FullyQualifiedName!~Fusonic.Extensions.Hangfire.Tests.HangfireTransactionalBehaviorTests"
27+
run: |
28+
export DOCKER_HOST=tcp://localhost:12375
29+
dotnet test --solution Extensions.slnx --no-build --verbosity normal

Extensions.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<File Path=".editorconfig" />
44
<File Path=".editorconfig.disableAnalyzers" />
55
<File Path=".gitlab-ci.yml" />
6+
<File Path="global.json" />
67
<File Path="README.md" />
78
<File Path="src/Directory.Build.props" />
89
<File Path="src/Directory.Packages.props" />

global.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"sdk": {
3+
"version": "10.0.100",
4+
"rollForward": "major"
5+
},
6+
"test": {
7+
"runner": "Microsoft.Testing.Platform"
8+
}
9+
}

0 commit comments

Comments
 (0)