Skip to content

Commit 0c0d6c4

Browse files
committed
Update buildPipeline.yml
1 parent 9c3db8e commit 0c0d6c4

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/buildPipeline.yml

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)