Created
February 2, 2020 22:35
-
-
Save ctolkien/74f5f32df4ddec6a1a647d73379d41d2 to your computer and use it in GitHub Desktop.
.NET Format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DotNet | |
on: [pull_request] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
name: 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment