Skip to content

Commit 91fb88b

Browse files
committed
feat: update test job to use matrix strategy and correct working-directory for tests
1 parent f0f9c8b commit 91fb88b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
test:
2727
runs-on: ubuntu-latest
2828
needs: build
29+
strategy:
30+
matrix:
31+
test: [ConsoleLogSinkTests, LoggerTests]
2932

3033
steps:
3134
- uses: actions/checkout@v4
@@ -36,9 +39,9 @@ jobs:
3639
dotnet-version: '10.0.x'
3740

3841
- name: Restore dependencies
39-
working-directory: src
42+
working-directory: tests/${{ matrix.test }}/src
4043
run: dotnet restore
4144

4245
- name: Test
43-
working-directory: src
46+
working-directory: tests/${{ matrix.test }}/src
4447
run: dotnet run --no-restore --configuration Release

0 commit comments

Comments
 (0)