From 360abf993d2b896b477b0ffa19d05227e0f445d7 Mon Sep 17 00:00:00 2001 From: eikendev Date: Sun, 27 Dec 2020 23:57:10 +0100 Subject: [PATCH] Setup path directly in the job where needed --- .github/workflows/main.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 040946c..93e6fc3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,15 +6,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Setup Go environment - run: | - export PATH="$(go env GOPATH)/bin:${PATH}" - echo ${GOPATH} - echo ${PATH} - name: Install dependencies run: make setup - name: Run tests - run: make test + run: | + export PATH="$PATH:$(go env GOPATH)/bin" # Currently the path needs to be set manually. + make test - name: Build image run: make build_image - name: Login to Docker Hub