Skip to content

Commit

Permalink
update to use net 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanzy committed Mar 19, 2024
1 parent ec49241 commit 17896eb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
# Project name to pack and publish
PROJECT_NAME: Tanzy.Xunit
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

jobs:
build:
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'
dotnet-version: '8.x'

#Install and calculate the new version with GitVersion
- name: Install GitVersion
Expand All @@ -58,7 +58,7 @@ jobs:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v3
Expand All @@ -75,13 +75,13 @@ jobs:
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
run: dotnet tool install --global dotnet-sonarscanner

- name: Install Code Coverage
run: dotnet tool install --global dotnet-coverage

- name: Install JetBrains dotCover
run: dotnet tool install --global JetBrains.dotCover.GlobalTool

- name: Restore
run: dotnet restore

Expand Down Expand Up @@ -110,13 +110,13 @@ jobs:
# --no-build \
# --configuration Release \
# --collect "XPlat Code Coverage" \
# --results-directory TestResults/
# --results-directory TestResults/
#run: dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml"
#run: dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml'
run: dotnet dotcover test --dcReportType=HTML


#run: |
#run: |
# dotnet test Tests/**/*.csproj \
# --no-restore \
# --no-build \
Expand All @@ -125,4 +125,4 @@ jobs:
# --results-directory TestResults

- name: End Sonar scan
run: dotnet sonarscanner end /d:sonar.login=${{ secrets.SONAR_TOKEN }}
run: dotnet sonarscanner end /d:sonar.login=${{ secrets.SONAR_TOKEN }}

0 comments on commit 17896eb

Please sign in to comment.