Skip to content

Commit

Permalink
Check formatting during CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Sep 8, 2023
1 parent 0330051 commit 0a1377c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: Restore tools
run: dotnet tool restore

- name: Check format
run: dotnet fantomas . --check

- name: Restore dependencies
run: dotnet restore --locked-mode

Expand Down
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ in order to craft an excellent pull request:
[interactive rebase](https://help.github.com/articles/about-git-rebase/)
feature to tidy up your commits before making them public.

5. Make sure all the tests are still passing.
5. Ensure the code is formatted and the sample still works.

```bash
dotnet tool restore
dotnet fake build
dotnet fantomas .
dotnet build -c Release
dotnet run --project src/FSharp.Analyzers.Cli/FSharp.Analyzers.Cli.fsproj -- --project ./samples/OptionAnalyzer/OptionAnalyzer.fsproj --analyzers-path ./samples/OptionAnalyzer/bin/Release --verbose
```

6. Push your topic branch up to your fork:
Expand Down

0 comments on commit 0a1377c

Please sign in to comment.