chore(deps): update github-actions non-major dependencies to v5.3.0 #6378
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" | |
| - "release/**" | |
| pull_request: | |
| branches: | |
| - "main" | |
| - "release/**" | |
| workflow_dispatch: | |
| jobs: | |
| analyze: | |
| strategy: | |
| matrix: | |
| os: [macos-latest, windows-latest, ubuntu-latest] | |
| name: Run dotnet build and test | |
| runs-on: ${{ matrix.os}} | |
| env: | |
| DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE: false | |
| steps: | |
| - name: Enable long paths for git on Windows | |
| if: matrix.os == 'windows-latest' | |
| run: git config --system core.longpaths true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
| - name: Tool restore | |
| run: | | |
| dotnet tool restore | |
| - name: Build | |
| run: | | |
| dotnet build solutions/All.sln -v m | |
| - name: Test | |
| if: matrix.os != 'ubuntu-latest' | |
| run: | | |
| dotnet test solutions/All.sln -v m --no-restore --no-build --filter "Category!=Integration" | |
| - name: Test (main tests) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| dotnet test solutions/All.sln -v m --no-restore --no-build --filter "Category!=Integration" | |
| - name: Install studioctl | |
| if: matrix.os == 'ubuntu-latest' | |
| env: | |
| STUDIOCTL_HOME: ${{ runner.temp }}/studioctl-home | |
| STUDIOCTL_INSTALL_DIR: ${{ runner.temp }}/studioctl-bin | |
| STUDIOCTL_VERSION: v0.1.0-preview.9 | |
| run: | | |
| mkdir -p "$STUDIOCTL_HOME" "$STUDIOCTL_INSTALL_DIR" | |
| curl -fsSL https://altinn.studio/designer/api/v1/studioctl/install.sh -o "$RUNNER_TEMP/studioctl-install.sh" | |
| sh "$RUNNER_TEMP/studioctl-install.sh" --version "$STUDIOCTL_VERSION" | |
| echo "$STUDIOCTL_INSTALL_DIR" >> "$GITHUB_PATH" | |
| "$STUDIOCTL_INSTALL_DIR/studioctl" --version | grep -Fx "studioctl $STUDIOCTL_VERSION" | |
| - name: Test (integration tests) | |
| if: matrix.os == 'ubuntu-latest' | |
| env: | |
| STUDIOCTL_HOME: ${{ runner.temp }}/studioctl-home | |
| TEST_STUDIOCTL_COMMAND: ${{ runner.temp }}/studioctl-bin/studioctl | |
| run: | | |
| dotnet test solutions/All.sln --no-restore --no-build --logger "console;verbosity=detailed" --filter "Category=Integration" |