From 1807aa9a2a22697386cb6b4ca8748c79ac49ebf3 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Wed, 18 Dec 2024 15:30:27 +0200 Subject: [PATCH 1/5] fix NuGet tests failure due to lack of Mono --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bd0625341..d1ad1751e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -108,6 +108,18 @@ jobs: with: dotnet-version: "6.x" + - name: Install Mono on Ubuntu + run: | + 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 + + if: runner.os == 'Linux' + shell: 'bash' + - name: Install Pnpm uses: pnpm/action-setup@v3 with: From 0717899c3841b6999000e58458a6ec257935eeb5 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Wed, 18 Dec 2024 15:50:06 +0200 Subject: [PATCH 2/5] fix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d1ad1751e..fed8da23a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -117,7 +117,7 @@ jobs: sudo apt-get update sudo apt-get install -y mono-complete - if: runner.os == 'Linux' + if: runner.os == 'ubuntu' shell: 'bash' - name: Install Pnpm From 679931e22fde1e7b2391230d0f610a389c01db71 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Wed, 18 Dec 2024 16:08:10 +0200 Subject: [PATCH 3/5] fix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fed8da23a..87c62cf3e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -117,7 +117,7 @@ jobs: sudo apt-get update sudo apt-get install -y mono-complete - if: runner.os == 'ubuntu' + if: matrix.os == 'ubuntu' shell: 'bash' - name: Install Pnpm From a55bc1cb31d7073daaedde15f9b7e823975137e1 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Wed, 18 Dec 2024 16:34:11 +0200 Subject: [PATCH 4/5] fix --- .github/workflows/test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 87c62cf3e..edcb164c9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -116,8 +116,7 @@ jobs: 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 - - if: matrix.os == 'ubuntu' + if: runner.os == 'Linux' shell: 'bash' - name: Install Pnpm From 3a47a8b13f9e150a6099c8835873e364275f643a Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Wed, 18 Dec 2024 16:57:32 +0200 Subject: [PATCH 5/5] adding nuget installation on Linux --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index edcb164c9..9892ac105 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -108,7 +108,13 @@ jobs: with: dotnet-version: "6.x" - - name: Install Mono on Ubuntu + - name: Install NuGet on Linux + uses: nuget/setup-nuget@v2 + with: + nuget-version: 6.11.0 + if: runner.os == 'Linux' + + - name: Install Mono on Linux run: | sudo apt-get update sudo apt-get install -y apt-transport-https dirmngr gnupg ca-certificates