Skip to content

Commit

Permalink
gh: separate martian tests to another step
Browse files Browse the repository at this point in the history
In Windows only run martian tests.
The go test ./... fails with wierd errors, see the issue #468 for details.
  • Loading branch information
mmatczuk committed Oct 17, 2023
1 parent 8524d35 commit 5516a1f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
with:
go-version: "${{env.GO_VERSION}}"

- name: Run martian unit test
run: make -C internal/martian test

- name: Run unit test
run: make test coverage

Expand All @@ -56,8 +59,8 @@ jobs:
with:
go-version: "stable" #TODO: load from dotenv file see #465

- name: Run unit test
run: make test coverage
- name: Run martian unit test
run: make -C internal/martian test

e2e:
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ lint:
.PHONY: test
test:
@go test -timeout 120s -short -race -cover -coverprofile=coverage.out ./...
@go test -run Integration ./internal/martian -tls
@go test -run Integration ./internal/martian -handler

.PHONY: coverage
coverage:
Expand Down
5 changes: 5 additions & 0 deletions internal/martian/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.PHONY: test
test:
@go test ./...
@go test -run Integration . -tls
@go test -run Integration . -handler

0 comments on commit 5516a1f

Please sign in to comment.