Skip to content

Commit

Permalink
Correct framework use in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonGraal committed Feb 7, 2025
1 parent 606ed94 commit fc1597f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:
src
test
retention-days: 1

tests:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
version:
- 8.0
- 9.0
version:
- "8.0"
- "9.0"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
Expand All @@ -55,7 +55,7 @@ jobs:
- name: Tests with Coverage
run: >
dotnet coverage collect -o ${{ github.workspace }}/coverage/Coverage-${{ matrix.version }}.xml -f cobertura -s coverage.runsettings
dotnet test --no-build --logger "trx;LogFileName=TestResults-${{ matrix.version }}.trx" -f ${{ matrix.version }}
dotnet test --no-build --logger "trx;LogFileName=TestResults-${{ matrix.version }}.trx" --framework "net${{ matrix.version }}"
- name: Generate Coverage Report
if: always()
run: >
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
name: coverage-${{ matrix.version }}
path: coverage/
- name: Upload Pages artifact
if: matrix.version == 9.0
if: matrix.version == '9.0'
uses: actions/upload-pages-artifact@v3
with:
path: test/Html
Expand Down
2 changes: 1 addition & 1 deletion coverage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ param (

$coverageFile = "$PWD/coverage/Coverage.xml"
$collect = "collect","-o",$coverageFile,"-f","cobertura","-s","coverage.runsettings"
$test = "test","--no-build","--logger:trx;LogFileName=TestResults.trx"
$test = "test","--no-build","--logger:trx;LogFileName=TestResults.trx","--framework","net9.0"

if ($Section) {
$test = $test + @("--filter", "FullyQualifiedName~.$Section.")
Expand Down

0 comments on commit fc1597f

Please sign in to comment.