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