Skip to content

Install stylecop to enforce code style #17

Install stylecop to enforce code style

Install stylecop to enforce code style #17

Workflow file for this run

name: dotnet-desktop
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
env:
Solution_Name: ValheimServer/ValheimServer.sln
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore $env:Solution_Name
- name: Build
run: dotnet build $env:Solution_Name --no-restore --configuration Release
- name: Run StyleCop Analyzers
run: dotnet build $env:Solution_Name --no-restore --configuration Release /p:TreatWarningsAsErrors=true /p:WarningsAsErrors=SA*