Skip to content

Commit e631e87

Browse files
committed
Add testing step and upload results to GitHub Actions workflow
1 parent 7148ca8 commit e631e87

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main_apicolombia.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ jobs:
2828
- name: Build with dotnet
2929
run: dotnet build --configuration Release
3030

31+
- name: Test with dotnet
32+
with:
33+
working-directory: ./api.Tests
34+
run: dotnet test --no-restore --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
35+
36+
- name: Upload dotnet test results
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: dotnet-results-${{ matrix.dotnet-version }}
40+
path: TestResults-${{ matrix.dotnet-version }}
41+
3142
- name: dotnet publish
3243
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
3344

0 commit comments

Comments
 (0)