Skip to content

Commit 94314ad

Browse files
committed
ci: try && for filter conjunction (TUnit treenode-filter)
1 parent ae78bb8 commit 94314ad

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,13 @@ jobs:
5151
shell: bash
5252
run: |
5353
if [[ "$RUNNER_OS" == "Windows" ]]; then
54-
dotnet run --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
55-
--configuration Release --no-build --framework net10.0 \
56-
-- --treenode-filter '/*/*/*/*[Category!=OpenBugs]' --report-trx
54+
FILTER='/*/*/*/*[Category!=OpenBugs]'
5755
else
58-
dotnet run --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
59-
--configuration Release --no-build --framework net10.0 \
60-
-- --treenode-filter '/*/*/*/*[Category!=OpenBugs]' \
61-
--treenode-filter '/*/*/*/*[Category!=WindowsOnly]' --report-trx
56+
FILTER='/*/*/*/*[Category!=OpenBugs && Category!=WindowsOnly]'
6257
fi
58+
dotnet run --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
59+
--configuration Release --no-build --framework net10.0 \
60+
-- --treenode-filter "$FILTER" --report-trx
6361
6462
- name: Upload Test Results
6563
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)