Bump MinVer from 4.3.0 to 5.0.0 #138
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: Build & Check | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# FIXME: Tools won't run in .NET 6.0 unless you install 3.1.x LTS side by side. | |
# https://itnext.io/how-to-support-multiple-net-sdks-in-github-actions-workflows-b988daa884e | |
- name: Install .NET 3.1.x LTS | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
3.1.x | |
6.0.x | |
8.0.x | |
- name: Restore Tools | |
run: dotnet tool restore | |
- name: Restore inspectcode cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ github.workspace }}/inspectcode | |
key: inspectcode-${{ hashFiles('.config/dotnet-tools.json', '.github/workflows/pr-build-check.yml', 'src/MilkiBotFramework.sln*') }} | |
- name: Restore dependencies | |
run: dotnet restore ./src | |
- name: Build | |
run: dotnet build ./src --no-restore | |
- name: InspectCode | |
run: dotnet jb inspectcode ./src/MilkiBotFramework.sln --no-build --output="inspectcodereport.xml" --caches-home="inspectcode" --verbosity=WARN | |
- name: NVika | |
run: dotnet nvika parsereport "${{github.workspace}}/inspectcodereport.xml" --treatwarningsaserrors | |