diff --git a/.github/workflows/integrationTests.yml b/.github/workflows/integrationTests.yml index 495b5497f..7cfd0d4a9 100644 --- a/.github/workflows/integrationTests.yml +++ b/.github/workflows/integrationTests.yml @@ -330,10 +330,26 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} + # Prepare ubuntu by installing Mono and handle dotnet installation issues. + - name: Prepare ubuntu + if: matrix.os == 'ubuntu-latest' + run: | + # Install Mono + sudo apt-get update + sudo apt-get install -y apt-transport-https dirmngr gnupg ca-certificates + sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF + echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list + sudo apt-get update + sudo apt-get install -y mono-complete + # Fixes dotnet installation issues, see https://github.com/jfrog/jfrog-cli/pull/2808 for more details. + echo "DOTNET_INSTALL_DIR=/usr/share/dotnet" >> $GITHUB_ENV + sudo mkdir -p /usr/share/dotnet + sudo chmod 777 /usr/share/dotnet + - name: Install dotnet uses: actions/setup-dotnet@v4 with: - dotnet-version: "3.x" + dotnet-version: "6.x" - name: Install NuGet uses: nuget/setup-nuget@v2