Skip to content

Update nuget non-major dependencies (patch) #6720

Update nuget non-major dependencies (patch)

Update nuget non-major dependencies (patch) #6720

Workflow file for this run

name: Build and Test on windows, macos and ubuntu
on:
push:
branches:
- "main"
- "release/**"
pull_request:
types:
- opened
- synchronize
- reopened
- edited
workflow_dispatch:
jobs:
analyze:
# Only run on pull_request edit if the base branch was changed, to avoid running when only description or title was edited.
if: github.event.action != 'edited' || github.event.changes.base.ref != null
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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
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"