diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d08e60f..8716fd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,17 +7,19 @@ on: jobs: lint_test: - uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.6.0 + uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.7.0 with: - run-unit-tests: true - run-integration-tests: false - run-lint: false - run-build: true - run-gosec: true - gosec-args: "-no-fail ./..." + go-version: '1.23' + go-lint-version: 'v1.60.2' + run-unit-tests: true + run-integration-tests: true + run-lint: true + run-build: true + run-gosec: true + gosec-args: "-no-fail ./..." docker_pipeline: - uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.6.0 + uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.7.0 secrets: inherit with: publish: false diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e05ecb1..49b0290 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,15 +9,16 @@ on: jobs: lint_test: - uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.6.0 + uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.7.0 with: + go-version: '1.23' + go-lint-version: 'v1.60.2' run-unit-tests: true - run-integration-tests: false - run-lint: false + run-integration-tests: true docker_pipeline: needs: ["lint_test"] - uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.6.0 + uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.7.0 secrets: inherit with: publish: true diff --git a/Makefile b/Makefile index 34854ac..d2b8f15 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ TOOLS_DIR := tools - +PACKAGES_E2E=$(shell go list ./... | grep '/e2etest') BUILDDIR ?= $(CURDIR)/build ldflags := $(LDFLAGS) @@ -50,3 +50,7 @@ generate-mock-interface: test: ./bin/local-startup.sh; go test -v -cover ./... + +test-e2e: + ./bin/local-startup.sh; + go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E) -count=1 --tags=e2e diff --git a/e2etest/e2e_test.go b/e2etest/e2e_test.go index 8cfaa57..6030bce 100644 --- a/e2etest/e2e_test.go +++ b/e2etest/e2e_test.go @@ -1,3 +1,6 @@ +//go:build e2e +// +build e2e + package e2etest import (