From 1a19023b867cc2aac94959aa1bb82e3b53cb4d48 Mon Sep 17 00:00:00 2001 From: Guillermo Sanchez Gavier Date: Thu, 7 Nov 2024 09:50:19 +0100 Subject: [PATCH] chore: fix harves test workflow (#1949) --- .github/workflows/component_linux_harvest_test.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/component_linux_harvest_test.yml b/.github/workflows/component_linux_harvest_test.yml index 7249cdd92..a35e344de 100644 --- a/.github/workflows/component_linux_harvest_test.yml +++ b/.github/workflows/component_linux_harvest_test.yml @@ -21,12 +21,11 @@ jobs: - name: Setup node run: sudo apt install musl-dev - - name: Fix GOROOT to be run with sudo + - name: Run harvest tests run: | - mkdir -p /home/runner/.config/go - echo GOROOT="$( go env GOROOT )" > /home/runner/.config/go/env - echo GOTOOLDIR="$( go env GOTOOLDIR )" >> /home/runner/.config/go/env - sudo -E go env + # Set up installed Go version for root user, to not use the default from the runner + # GO_BIN is used by the Makefile + export GO_BIN="$( which go)" + + sudo -E make linux/harvest-tests - - name: Running Harvest tests - run: sudo -E make linux/harvest-tests