File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : .NET Core Build with Tests
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ build :
11+ # use ubuntu for more build minutes
12+ runs-on : ubuntu-latest
13+ # use release mode for all steps
14+ env :
15+ config : ' Debug'
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+ - name : Setup .NET Core
20+ uses : actions/setup-dotnet@v2
21+ with :
22+ dotnet-version : ' 8.0.x'
23+
24+ - name : Install dependencies
25+ run : |
26+ docker compose -f test-database/docker-compose.yml pull
27+ cd src
28+ dotnet restore
29+ - name : Build
30+ run : |
31+ cd src
32+ dotnet build --configuration $config --no-restore
33+ - name : Test
34+ run : |
35+ docker compose -f test-database/docker-compose.yml up -d
36+ cd src
37+ dotnet test -l "console;verbosity=detailed"
You can’t perform that action at this time.
0 commit comments