Skip to content

Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 8.0.8 to 8.0.21 #18

Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 8.0.8 to 8.0.21

Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 8.0.8 to 8.0.21 #18

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build-test:
runs-on: windows-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run tests with coverage
run: dotnet test --configuration Release --no-build --collect "XPlat Code Coverage" --results-directory TestResults
- name: Convert coverage to lcov
run: |
dotnet tool install --global dotnet-reportgenerator-globaltool --version 5.*
reportgenerator -reports:TestResults/**/coverage.cobertura.xml -targetdir:coverage -reporttypes:lcov
env:
PATH: $env:PATH:~/.dotnet/tools
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test-results
path: TestResults
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/lcov.info
fail_ci_if_error: false
verbose: false
lint-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Markdown lint
uses: avto-dev/markdown-lint@v1
with:
args: README.md