opentelemetry-dotnet/.github/workflows/dotnet-format.yml

28 lines
494 B
YAML

name: dotnet format
on:
pull_request:
branches: [ main ]
paths:
- '**.cs'
- '.editorconfig'
jobs:
check-format:
runs-on: windows-latest
steps:
- name: check out code
uses: actions/checkout@v2
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Install format tool
run: dotnet tool install -g dotnet-format
- name: dotnet format
run: dotnet-format --folder --check