Skip to content

Bump jetbrains.resharper.globaltools from 2023.3.3 to 2024.1.3 #146

Bump jetbrains.resharper.globaltools from 2023.3.3 to 2024.1.3

Bump jetbrains.resharper.globaltools from 2023.3.3 to 2024.1.3 #146

Workflow file for this run

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