diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55cd57d..2a06aef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,8 +29,6 @@ jobs: uses: actions/setup-go@v4 with: go-version: 1.19.x - - name: Set up test-env - run: make test-env - name: Run unit tests run: go test --short ./... -race -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage to Codecov diff --git a/Makefile b/Makefile index e5ebe92..508a238 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ docker-run: layer5/meshery-$(ADAPTER):$(RELEASE_CHANNEL)-latest ## Build and run Adapter locally -run: dep-check +run: go mod tidy; \ DEBUG=true GOPROXY=direct GOSUMDB=off go run main.go @@ -52,18 +52,6 @@ run: dep-check run-force-dynamic-reg: dep-check FORCE_DYNAMIC_REG=true DEBUG=true GOPROXY=direct GOSUMDB=off go run main.go -## Run Meshery Error utility -error: dep-check - go run github.com/layer5io/meshkit/cmd/errorutil -d . analyze -i ./helpers -o ./helpers - -## Run Golang tests -test: dep-check - export CURRENTCONTEXT="$(kubectl config current-context)" - echo "current-context:" ${CURRENTCONTEXT} - export KUBECONFIG="${HOME}/.kube/config" - echo "environment-kubeconfig:" ${KUBECONFIG} - GOPROXY=direct GOSUMDB=off GO111MODULE=on go test -v ./... - #----------------------------------------------------------------------------- # Dependencies #-----------------------------------------------------------------------------