Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests - Fix .NET ubuntu installation #814

Merged
merged 3 commits into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/integrationTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading