Skip to content

Commit

Permalink
chore: run e2e tests in ci, add sm pull to makefile (#298)
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <[email protected]>
  • Loading branch information
toddbaert authored Oct 30, 2024
1 parent 13444e7 commit 8675832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
${GOPATH}/bin/golangci-lint run --deadline=3m --timeout=3m ./... # Run linters

0 comments on commit 8675832

Please sign in to comment.