33 lines
590 B
YAML
33 lines
590 B
YAML
name: dotnet format
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, metrics ]
|
|
paths:
|
|
- '**.cs'
|
|
- '.editorconfig'
|
|
pull_request:
|
|
branches: [ main, metrics ]
|
|
paths:
|
|
- '**.cs'
|
|
- '.editorconfig'
|
|
|
|
jobs:
|
|
check-format:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: check out code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup .NET Core 6.0
|
|
uses: actions/setup-dotnet@v2
|
|
with:
|
|
dotnet-version: 6.0.x
|
|
|
|
- name: Install format tool
|
|
run: dotnet tool install -g dotnet-format
|
|
|
|
- name: dotnet format
|
|
run: dotnet-format --folder --check
|