Skip to content

Commit 9c3db8e

Browse files
committed
Update buildPipeline.yml
1 parent 6bebb07 commit 9c3db8e

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/buildPipeline.yml

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

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup .NET
17-
uses: actions/setup-dotnet@v2
17+
uses: actions/setup-dotnet@v4
1818
with:
1919
dotnet-version: 8.0.x
2020
cache: true
2121

22-
- name: Install dependencies
23-
run: dotnet restore
24-
working-directory: ./
22+
- name: Restore
23+
run: dotnet restore ./Phase06.sln
2524

2625
- name: Build
27-
run: dotnet build --configuration Release --no-restore
28-
working-directory: ./
26+
run: dotnet build ./Phase06.sln --configuration Release --no-restore
2927

30-
- name: Test
31-
run: dotnet test --no-restore --verbosity normal --collect:"XPlat Code Coverage"
32-
working-directory: ./
28+
- name: Test (with coverage)
29+
run: dotnet test ./Phase06.sln --configuration Release --no-restore --collect:"XPlat Code Coverage" --verbosity normal
3330

34-
- name: Publish code coverage reports to codecove.io
35-
uses: codecov/codecov-action@v1
31+
- name: Upload coverage to Codecov
32+
uses: codecov/codecov-action@v4
3633
with:
3734
token: ${{ secrets.CODECOV_TOKEN }}
38-
files: ./**/coverage.cobertura.xml
39-
fail_ci_if_error: true
35+
files: **/TestResults/*/coverage.cobertura.xml
36+
fail_ci_if_error: true

0 commit comments

Comments
 (0)