Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Validate PR

on: [pull_request]

jobs:
format:
runs-on: ubuntu-latest
name: DotNet Format
steps:
- uses: actions/checkout@v2

# workaround for dotnet tools not being on path https://github.com/actions/virtual-environments/issues/213
- name: add .dotnet/tools to path
run: echo "::set-env name=PATH::${PATH}:${HOME}/.dotnet/tools"

- run: dotnet tool install -g dotnet-format

- run: dotnet format --folder ./ --dry-run --check