Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

style: [CodeFactor] apply fixes to commit 5ed5d6f (#21) #49

style: [CodeFactor] apply fixes to commit 5ed5d6f (#21)

style: [CodeFactor] apply fixes to commit 5ed5d6f (#21) #49

name: Dotnet Format Check
on:
push:
paths:
- "**/*.cs"
- "**/.editorconfig"
pull_request:
types:
- ready_for_review
- opened
- reopened
workflow_dispatch:
jobs:
check:
runs-on: windows-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0"
cache: true
cache-dependency-path: ViSort/packages.lock.json
- name: Restore deps
run: dotnet restore --locked-mode --use-lock-file
- name: Run dotnet format check
run: |
dotnet format --verbosity detailed --verify-no-changes --no-restore
if (! $?)
{
Write-Error "Please reformat"
[Environment]::Exit(1)
}