From 91593db21e6d9707d2d332e40c295bf726d0be8d Mon Sep 17 00:00:00 2001 From: Tom Hayward Date: Thu, 11 Jan 2024 11:26:03 -0800 Subject: [PATCH] setup-go@v3+ adds GOBIN to the PATH, so we can use default paths --- .github/workflows/pr.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index b367c76..223ed33 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -15,20 +15,14 @@ jobs: env: HELM_VERSION: v3.4.2 steps: + - name: Checkout code + uses: actions/checkout@v4 - uses: actions/setup-go@v5 - uses: azure/setup-helm@v3.5 with: version: ${{ env.HELM_VERSION }} - - name: Checkout code - uses: actions/checkout@v4 - with: - path: ./src/github.com/${{ github.repository }} - run: go version - - run: echo ${{ github.workspace }}/bin >> $GITHUB_PATH - name: Test - working-directory: ./src/github.com/${{ github.repository }} - env: - GOPATH: ${{ github.workspace }} run: | git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]"