1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-02-03 13:01:26 +02:00

ci(github): add test coverage creation and upload

This commit is contained in:
Niko Köser 2022-04-26 01:04:18 +02:00
parent 62773ae71a
commit c7bf922209
No known key found for this signature in database
GPG Key ID: F3F28C118DAA6375

View File

@ -36,8 +36,10 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: go test -failfast -race ./...
- name: Test coverage
run: go test -race -covermode=atomic -coverprofile=coverage.out
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
lint:
runs-on: ubuntu-latest
steps: