Skip to content

Commit 7951ddf

Browse files
committed
0.03 - debug workflow
1 parent 3b75971 commit 7951ddf

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/dotnet.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,39 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
1516

16-
- name: Setup .NET
17+
- name: Setup .NET SDK
1718
uses: actions/setup-dotnet@v4
1819
with:
1920
dotnet-version: '8.0.x'
2021

2122
- name: Restore dependencies
22-
run: dotnet restore TimeScaleAPI/TimeScaleAPI.csproj
23+
run: dotnet restore TimeScaleAPI.UnitTests/TimeScaleAPI.UnitTests.sln
2324

24-
- name: Build
25-
run: dotnet build TimeScaleAPI/TimeScaleAPI.csproj --no-restore --configuration Release
25+
- name: Build solution
26+
run: dotnet build TimeScaleAPI.UnitTests/TimeScaleAPI.UnitTests.sln --configuration Release --no-restore
2627

2728
- name: Run tests with coverage
2829
run: |
29-
cd TimeScaleAPI.UnitTests
30-
dotnet test --no-build --configuration Release \
31-
--verbosity normal \
30+
dotnet test TimeScaleAPI.UnitTests/TimeScaleAPI.UnitTests.sln \
31+
--configuration Release \
32+
--no-build \
3233
--collect:"XPlat Code Coverage"
3334
34-
- name: Install ReportGenerator
35+
- name: Install reportgenerator
3536
run: dotnet tool install -g dotnet-reportgenerator-globaltool
3637

3738
- name: Convert coverage to lcov
3839
run: |
39-
export PATH="$PATH:$HOME/.dotnet/tools"
40-
REPORT_PATH=$(find . -type f -name 'coverage.cobertura.xml' | head -n 1)
41-
reportgenerator -reports:$REPORT_PATH -targetdir:coverage -reporttypes:lcov
40+
reportgenerator \
41+
-reports:**/coverage.cobertura.xml \
42+
-targetdir:coverage \
43+
-reporttypes:lcov
4244
4345
- name: Upload coverage to Codecov
4446
uses: codecov/codecov-action@v5
4547
with:
46-
token: ${{ secrets.CODECOV_TOKEN }}
4748
files: ./coverage/lcov.info
48-
fail_ci_if_error: true
49+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)