Skip to content

Commit

Permalink
Move coverage file (cover_test.txt) to project root
Browse files Browse the repository at this point in the history
  • Loading branch information
psadac committed Apr 28, 2022
1 parent c4d5495 commit 19a6089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: golangci/golangci-lint-action@v3

- name: Run tests
run: go test -run=. -race -v -covermode=atomic -coverprofile=./tmp/cover_test.txt ./...
run: go test -run=. -race -v -covermode=atomic -coverprofile=./cover_test.txt ./...

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand All @@ -33,6 +33,6 @@ jobs:
GO: ${{ matrix.go }}
with:
env_vars: os,go
files: ./tmp/cover_test.txt
files: ./cover_test.txt
flags: unittests
verbose: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
# temporary files
tmp

# coverage
cover_test.txt

# editors
.idea
.vscode

0 comments on commit 19a6089

Please sign in to comment.