Bump github/gh-aw-actions from dc50be57c94373431b49d3d0927f318ac2bb5c4c to 853312c41e88e0d6f51d0e4e0658f3ad7461366a #859
Workflow file for this run
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-build | |
| on: [pull_request] | |
| jobs: | |
| verify_formatting: | |
| runs-on: ubuntu-latest | |
| name: Verify code formatting | |
| steps: | |
| - name: checkout-code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: setup-dotnet | |
| uses: actions/setup-dotnet@v4 | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.nuget/packages | |
| key: nuget-${{ runner.os }}-${{ hashFiles('**/*.fsproj', '**/*.csproj', 'global.json') }} | |
| restore-keys: nuget-${{ runner.os }}- | |
| - name: tool restore | |
| run: dotnet tool restore | |
| - name: validate formatting | |
| run: dotnet fantomas . --check | |
| build: | |
| name: Build | |
| runs-on: windows-latest | |
| steps: | |
| # checkout the code | |
| - name: checkout-code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| # setup dotnet based on global.json | |
| - name: setup-dotnet | |
| uses: actions/setup-dotnet@v4 | |
| # cache NuGet packages to avoid re-downloading on every run | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.nuget/packages | |
| key: nuget-${{ runner.os }}-${{ hashFiles('**/*.fsproj', '**/*.csproj', 'global.json') }} | |
| restore-keys: nuget-${{ runner.os }}- | |
| # build it, test it, pack it | |
| - name: Run dotnet build (release) | |
| # see issue #105 | |
| # very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble | |
| shell: cmd | |
| run: ./build.cmd |