Skip to content

Code Style Check

Code Style Check #145

Workflow file for this run

name: Code Style Check
on:
workflow_dispatch:
pull_request:
jobs:
check-code-style:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: "./global.json"
- name: Restore dependencies
run: dotnet restore
- name: Install trace
run: dotnet tool install --global dotnet-trace
- name: run trace
run: dotnet-trace collect -- dotnet format --verify-no-changes
- name: Check code format (editorconfig)
run: dotnet format --verify-no-changes
- name: Save artifact
uses: actions/upload-artifact@v2
with:
name: trace
path: "*.nettrace"