Skip to content

Commit

Permalink
Enabling dotnet-format in pipeline
Browse files Browse the repository at this point in the history
updating script to execute every time

using windows environment

updating path
  • Loading branch information
eddynaka committed Oct 22, 2020
1 parent d4a3f71 commit b36b78e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/dotnet-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: dotnet format

on:
pull_request:
branches: [ master ]

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 --exclude .\src\Sarif\Autogenerated\

0 comments on commit b36b78e

Please sign in to comment.