Skip to content

Commit 1f4964b

Browse files
bug resoltion due to strategy in workflow
1 parent 5fbbf49 commit 1f4964b

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/dotnet-tests.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
name: .NET Tests (collector)
22

33
on:
4-
push: { branches: [ "main" ] }
5-
pull_request: { branches: [ "main" ] }
6-
workflow_dispatch: {} # ← enables the “Run workflow” button
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch: {}
79

810
jobs:
911
test:
1012
runs-on: ubuntu-latest
11-
12-
strategy:
13+
permissions:
14+
id-token: write # needed only if you use Codecov with OIDC
15+
16+
strategy:
1317
matrix:
1418
include:
1519
- name: UserManagementApi.Tests.Unit
1620
proj: UserManagementApi.Tests.Unit.csproj
1721
- name: UserManagementApi.Tests.Integration
1822
proj: UserManagementApi.Tests.Integration.csproj
19-
20-
steps:
23+
24+
steps:
2125
- uses: actions/checkout@v4
2226

2327
- uses: actions/setup-dotnet@v4
@@ -52,14 +56,11 @@ jobs:
5256
TestResults/${{ matrix.name }}/**/coverage.info
5357
TestResults/${{ matrix.name }}/**/*.trx
5458
55-
# Codecov (optional)
5659
- name: Upload to Codecov
5760
if: success()
5861
uses: codecov/codecov-action@v5
5962
with:
6063
files: TestResults/${{ matrix.name }}/**/coverage.info
6164
flags: ${{ matrix.name }}
6265
fail_ci_if_error: true
63-
use_oidc: true
64-
permissions:
65-
id-token: write
66+
use_oidc: true

0 commit comments

Comments
 (0)