From eeee6306717abb686efaa6fdc21cd9db95b5dfbc Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Wed, 30 Oct 2024 11:42:03 -0400 Subject: [PATCH] chore: run e2e tests in ci, add sm pull to makefile Signed-off-by: Todd Baert --- .github/workflows/pr-checks.yml | 4 +++- Makefile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 42b0ce28..06c93423 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -53,8 +53,10 @@ jobs: with: path: ~/go/pkg/mod key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }} - - name: Run tests + - name: Run unit tests run: go test -race -coverprofile=coverage.out -covermode=atomic ./... + - name: Run e2e tests + run: go test -race --coverprofile=coverage.out -covermode=atomic ./e2e/... - name: Upload coverage to Codecov uses: codecov/codecov-action@v4.6.0 with: diff --git a/Makefile b/Makefile index 3b1e6a9e..a2e4a627 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ mockgen: test: go test --short -cover ./... e2e-test: - go test -race -cover ./e2e/... + git submodule update --init --recursive && go test -race -cover ./e2e/... lint: go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.1 ${GOPATH}/bin/golangci-lint run --deadline=3m --timeout=3m ./... # Run linters