Skip to content

Commit d5bcfeb

Browse files
committed
exclude cgo tests in Docker images
1 parent 13ca8cc commit d5bcfeb

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ jobs:
197197
run: |
198198
docker run --platform=${{ matrix.platform }} --rm \
199199
"$(jq -r '."builder-${{ matrix.variant }}"."containerimage.config.digest"' <<< "${METADATA}")" \
200-
sh -c 'CGO_CFLAGS="${CGO_CFLAGS}" go test -tags ${{ matrix.race }} -v ./... && cd caddy && go test -tags nobadger,nomysql,nopgx ${{ matrix.race }} -v ./...'
200+
sh -c 'go test -tags ${{ matrix.race }} -v (go list ./... | grep -v github.com/dunglas/frankenphp/internal/testext | grep -v github.com/dunglas/frankenphp/internal/extgen) && cd caddy && go test -tags nobadger,nomysql,nopgx ${{ matrix.race }} -v ./...'
201201
env:
202202
METADATA: ${{ steps.build.outputs.metadata }}
203203
# Adapted from https://docs.docker.com/build/ci/github-actions/multi-platform/

internal/testext/ext_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ package testext
33
import "testing"
44

55
func TestRegisterExtension(t *testing.T) {
6-
t.Skip("crasing on Linux")
76
testRegisterExtension(t)
87
}

0 commit comments

Comments
 (0)