From cc244111dd516c784e478d03bdc7e9b884223b38 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Wed, 5 Jul 2023 19:07:07 -0400 Subject: [PATCH] feat(ci): test with/out cgo Format yaml using prettier --- .github/workflows/ci.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7222d5..ece6e46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,14 +9,17 @@ jobs: name: Test strategy: matrix: - go: ['1.20', '1.19', '1.18', '1.17'] + go: ["1.20", "1.19", "1.18", "1.17"] platform: [ubuntu-latest] # can not run in windows OS + cgo: ["0", "1"] runs-on: ubuntu-latest steps: - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: ${{ matrix.go }} - - uses: actions/checkout@v3 - - name: Test - run: go test -v -cover . + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go }} + - uses: actions/checkout@v3 + - name: Test + env: + CGO_ENABLED: ${{ matrix.cgo }} + run: go test -v -cover .