Skip to content

fix: resolve SonarCloud issues (S927, S1192, S3776, CA1859, S2701, ID… #598

fix: resolve SonarCloud issues (S927, S1192, S3776, CA1859, S2701, ID…

fix: resolve SonarCloud issues (S927, S1192, S3776, CA1859, S2701, ID… #598

Workflow file for this run

name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Install tools
run: |
dotnet tool install --global coverlet.console
- name: Restore
run: dotnet restore ./src --verbosity m
- name: Pack
run: dotnet pack -c release ./src/System.Net.IPNetwork
- name: Build
run: dotnet build --no-restore -c release ./src/ConsoleApplication
- name: Test with coverage
run: |
dotnet build ./src/TestProject/TestProject.csproj -c Debug
coverlet src/TestProject/bin/Debug/net10.0/TestProject.dll \
--target dotnet \
--targetargs "src/TestProject/bin/Debug/net10.0/TestProject.dll" \
--format lcov \
--output coverage.lcov
- name: Upload to Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage.lcov
format: lcov