Skip to content

Commit

Permalink
Merge pull request #10 from fortio/coverage_change
Browse files Browse the repository at this point in the history
split race test and coverage generation
  • Loading branch information
ldemailly authored Mar 23, 2024
2 parents 08c3a76 + 196abe4 commit 4880a59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Optional init
run: make dependencies || true # Used in fortio for instance to prep for go tests
- name: Run test coverage
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
run: go test -coverprofile=coverage.out ./...
- uses: codecov/codecov-action@v3
with:
files: coverage.out
4 changes: 4 additions & 0 deletions .github/workflows/gochecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ jobs:
run: curl -fsS -o .golangci.yml https://raw.githubusercontent.com/fortio/workflows/main/golangci.yml
- name: Run golangci-lint
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # pin@v3
- name: Optional init
run: make dependencies || true # Used in fortio for instance to prep for go tests
- name: Run tests with race detector
run: go test -race ./...

0 comments on commit 4880a59

Please sign in to comment.