Skip to content

build(deps): bump dessant/lock-threads from 4 to 5 (#766) #38

build(deps): bump dessant/lock-threads from 4 to 5 (#766)

build(deps): bump dessant/lock-threads from 4 to 5 (#766) #38

name: Test Coverage and Quality
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Release] # future support for more coverage
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: |
21
distribution: 'zulu' # Alternative distribution options are available.
# Install the .NET Core workload
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Install tools
run: |
dotnet tool install -g dotnet-sonarscanner
- name: NuGet Restore
run: dotnet restore DynamicData.sln
working-directory: src
- name: Run coverage tests
run: |
dotnet sonarscanner begin /k:"reactivemarbles_DynamicData" /o:"reactivemarbles" /d:sonar.token="${{ env.SONAR_TOKEN }}" /d:sonar.cs.opencover.reportsPaths=./**/coverage.opencover.xml /d:sonar.host.url="https://sonarcloud.io"
dotnet build --no-restore --no-incremental --configuration ${{ matrix.configuration }} -p:ContinuousIntegrationBuild=false DynamicData.sln
dotnet test --no-build --configuration ${{ matrix.configuration }} --collect:"XPlat Code Coverage" --settings coverlet.xml
dotnet sonarscanner end /d:sonar.token="${{ env.SONAR_TOKEN }}"
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
working-directory: src