From ac7d806d64ceaab812b337d932bdbe4a0880742f Mon Sep 17 00:00:00 2001 From: Ales Pour Date: Mon, 8 Apr 2024 16:34:03 +0200 Subject: [PATCH] chore: do not run e2e on PRs from forks --- .circleci/config.yml | 7 ++++++- influxdb3/client_e2e_test.go | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a3319cf..5cc1887 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,7 +28,12 @@ jobs: go install golang.org/x/lint/golint@latest && golint ./... - run: name: Run tests - command: GOEXPERIMENT=nocoverageredesign go test -v -cover -coverprofile=coverage.out --tags e2e ./... + command: | + if [ "${CIRCLE_BRANCH}" == pull/* ]; + GOEXPERIMENT=nocoverageredesign go test -v -cover -coverprofile=coverage.out ./... + else + GOEXPERIMENT=nocoverageredesign go test -v -cover -coverprofile=coverage.out --tags e2e ./... + fi - run: name: Coverage Report command: | diff --git a/influxdb3/client_e2e_test.go b/influxdb3/client_e2e_test.go index f64d50d..5a70200 100644 --- a/influxdb3/client_e2e_test.go +++ b/influxdb3/client_e2e_test.go @@ -1,3 +1,5 @@ +// +build e2e + /* The MIT License