Skip to content

Commit 530dd55

Browse files
authored
Tests - Fix .NET ubuntu installation (#814)
1 parent e53bf46 commit 530dd55

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/integrationTests.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,26 @@ jobs:
330330
with:
331331
ref: ${{ github.event.pull_request.head.sha }}
332332

333+
# Prepare ubuntu by installing Mono and handle dotnet installation issues.
334+
- name: Prepare ubuntu
335+
if: matrix.os == 'ubuntu-latest'
336+
run: |
337+
# Install Mono
338+
sudo apt-get update
339+
sudo apt-get install -y apt-transport-https dirmngr gnupg ca-certificates
340+
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
341+
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
342+
sudo apt-get update
343+
sudo apt-get install -y mono-complete
344+
# Fixes dotnet installation issues, see https://github.com/jfrog/jfrog-cli/pull/2808 for more details.
345+
echo "DOTNET_INSTALL_DIR=/usr/share/dotnet" >> $GITHUB_ENV
346+
sudo mkdir -p /usr/share/dotnet
347+
sudo chmod 777 /usr/share/dotnet
348+
333349
- name: Install dotnet
334350
uses: actions/setup-dotnet@v4
335351
with:
336-
dotnet-version: "3.x"
352+
dotnet-version: "6.x"
337353

338354
- name: Install NuGet
339355
uses: nuget/setup-nuget@v2

0 commit comments

Comments
 (0)