From 4ff78c82abb669092738293f5c682c0a9e4ea772 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Mon, 8 Nov 2021 14:36:08 -0800 Subject: [PATCH] Enable cgo for testing. The leveldb wrapper library requires cgo to build. --- .github/workflows/ci.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cfedffca..a8beee60b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,12 +22,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: test & coverage report creation - run: /bin/true - #run: | - # go test ./... -mod=readonly -timeout 8m -race -coverprofile=coverage.txt -covermode=atomic -tags=memdb,goleveldb,cleveldb,boltdb,rocksdb,badgerdb -v - #- uses: codecov/codecov-action@v2.0.3 - # with: - # file: ./coverage.txt - # fail_ci_if_error: true - # - # TODO(creachadair): Temporarily disabled to update CI image. + run: | + CGO_ENABLED=1 go test ./... -mod=readonly -timeout 8m -race -coverprofile=coverage.txt -covermode=atomic -tags=memdb,goleveldb,cleveldb,boltdb,rocksdb,badgerdb -v + - uses: codecov/codecov-action@v2.0.3 + with: + file: ./coverage.txt + fail_ci_if_error: true