feat(ci): add dotnet format check action

This commit is contained in:
spiral 2022-11-03 22:38:14 +00:00
parent e2a6ee208b
commit 744e5e103f
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

17
.github/workflows/dotnetformat.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Format check on pull request
on: [push, pull_request]
jobs:
dotnet-format:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Add dotnet-format problem matcher
uses: xt0rted/dotnet-format-problem-matcher@v1
- name: Restore dotnet tools
uses: xt0rted/dotnet-tool-restore@v1
- name: Run dotnet format
uses: xt0rted/dotnet-format@v1