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
This commit is contained in:
Johanan Idicula
2023-05-16 13:18:12 -04:00
committed by GitHub
parent 71fc548b2d
commit a9d75d16fb

View File

@@ -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 }}