Add Fantomas and require correct formatting #652
Workflow file for this run
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: Pull Request | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install .NET SDKs | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
3.1.x | |
6.0.x | |
- name: Restore Fantomas | |
run: dotnet -d tool restore --configfile src/.config/dotnet-tools.json | |
- name: Format | |
run: dotnet fantomas src --check | |
- name: Restore | |
run: dotnet restore src/Elmish.WPF.sln | |
- name: Build | |
run: dotnet build --no-restore --configuration Release src/Elmish.WPF.sln | |
- name: Test | |
run: dotnet test --no-build --configuration Release src/Elmish.WPF.Tests/Elmish.WPF.Tests.fsproj |