From a9d75d16fb7848483269e4291c84c3424ffd6fe5 Mon Sep 17 00:00:00 2001 From: Johanan Idicula Date: Tue, 16 May 2023 13:18:12 -0400 Subject: [PATCH] fix: Set `CGO_ENABLED` with `env` directive (#68) * fix: Use env setting for CGO_ENABLED Resolves run failures in Windows CI. * ci(e2e): Run e2e on all PRs to main --- .github/workflows/e2e_test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml index de204a6..6935a83 100644 --- a/.github/workflows/e2e_test.yml +++ b/.github/workflows/e2e_test.yml @@ -2,7 +2,10 @@ name: E2E Test on: push: - branches: + branches: + - main + pull_request: + branches: - main workflow_dispatch: @@ -43,7 +46,9 @@ jobs: restore-keys: | go-${{ runner.os }}- - name: Build the project - run: CGO_ENABLED=0 go build + env: + CGO_ENABLED: 0 + run: go build - name: Install extension env: GITHUB_TOKEN: ${{ secrets.REPO_WRITE_TOKEN }}