Skip to content

Instantly share code, notes, and snippets.

@ctolkien
Created February 2, 2020 22:35
Show Gist options
  • Save ctolkien/74f5f32df4ddec6a1a647d73379d41d2 to your computer and use it in GitHub Desktop.
Save ctolkien/74f5f32df4ddec6a1a647d73379d41d2 to your computer and use it in GitHub Desktop.
.NET Format
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