Try a temporary workaround for linting error #2
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: Build / Lint Check / Format Check | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.x' | |
- run: dotnet build | |
lint_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
6.0.403 | |
8.x | |
- name: Install Tools | |
run: dotnet tool restore | |
- name: Temporary workaround | |
run: dotnet new globaljson --sdk-version 6.0.403 --roll-forward minor | |
- run: dotnet dotnet-fsharplint lint JimBroBot.fsproj | |
format_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.x' | |
- name: Install Tools | |
run: dotnet tool restore | |
- run: dotnet fantomas --check . |