Update actions/setup-dotnet digest to 2016bd2 #282
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: Build and Test on windows, macos and ubuntu | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| types: [opened, synchronize, reopened] | |
| workflow_dispatch: | |
| jobs: | |
| analyze: | |
| strategy: | |
| matrix: | |
| os: [macos-latest,windows-latest,ubuntu-latest] # TODO: Fix test to run on ubuntu-latest also | |
| name: Run dotnet build and test | |
| runs-on: ${{ matrix.os}} | |
| env: | |
| DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE: false | |
| steps: | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| with: | |
| fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
| - name: Build | |
| run: | | |
| dotnet build Altinn.FileAnalyzers.sln -v m | |
| - name: Test | |
| run: | | |
| dotnet test Altinn.FileAnalyzers.sln -v m |