Skip to content

Commit 46078f0

Browse files
Update test.yml
1 parent 5b65803 commit 46078f0

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,16 @@ jobs:
5757
mkdir -p TestResults
5858
found=false
5959
for proj in $(find . -name "*.Tests.csproj"); do
60-
found=true
61-
echo "Running tests for $proj"
62-
dotnet test "$proj" \
63-
--no-build \
64-
--configuration ${{ env.BUILD_CONFIGURATION }} \
65-
--logger "trx;LogFileName=$(basename $proj).trx" \
66-
--results-directory ./TestResults
60+
for fw in net9.0 net8.0; do
61+
found=true
62+
echo "Running tests for $proj ($fw)"
63+
dotnet test "$proj" \
64+
--no-build \
65+
--configuration ${{ env.BUILD_CONFIGURATION }} \
66+
--framework $fw \
67+
--logger "trx;LogFileName=$(basename $proj)-$fw.trx" \
68+
--results-directory ./TestResults
69+
done
6770
done
6871
6972
if [ "$found" = false ]; then

0 commit comments

Comments
 (0)