CI #37
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore | |
| run: dotnet restore | |
| - name: Install tools | |
| run: | | |
| dotnet tool install -g dotnet-fantomas | |
| dotnet tool install -g dotnet-fsharplint | |
| - name: Format check | |
| run: dotnet fantomas . --check | |
| - name: Lint | |
| run: dotnet-fsharplint lint FLPQ.slnx | |
| - name: Build | |
| run: dotnet build FLPQ.slnx -c Debug --no-restore | |
| - name: Test | |
| run: dotnet test --no-build -c Debug |