Separate dotnet workload restore to its own step #4
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: Check format | |
| on: [push, pull_request] | |
| jobs: | |
| Everything: | |
| if: (github.event_name == 'pull_request') == github.event.pull_request.head.repo.fork | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.x' | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: 'recursive' | |
| - run: dotnet workload restore | |
| - name: Check formatting | |
| run: dotnet format --verify-no-changes --exclude Typography |