Skip to content

Commit

Permalink
Enabling dotnet-format in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
eddynaka committed Oct 22, 2020
1 parent d4a3f71 commit 7f8a47f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dotnet-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: dotnet format

on:
pull_request:
branches: [ master ]
paths:
- '**.cs'
- '.editorconfig'

jobs:
check-format:
runs-on: ubuntu-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 --exclude ./src/Sarif/Autogenerated/

0 comments on commit 7f8a47f

Please sign in to comment.