This commit is contained in:
Ruidy 2022-02-22 18:12:42 -04:00
parent 0a26d339f4
commit 971cfc2712
2 changed files with 3 additions and 3 deletions

View file

@ -12,8 +12,8 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: Run coverage
run: go test -race -coverprofile=coverage.out -covermode=atomic
- name: Run tests with coverage
run: go test -race -coverprofile=coverage.out -covermode=atomic && cat ./coverage.out
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos

View file

@ -19,6 +19,6 @@ web:
cd client && npm run start
test:
go test -json -count=1 ./... -coverpkg=./... -coverprofile coverage.out -covermode=atomic | gotestfmt && go tool cover -html coverage.outt && rm coverage.outt
go test -json -count=1 ./... -coverpkg=./... -coverprofile coverage.out -covermode=atomic | gotestfmt # && go tool cover -html coverage.out && rm coverage.out
.PHONY: lint run dev run-web test build