Bump jetbrains.resharper.globaltools from 2023.3.3 to 2024.3.0 #161
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 | |