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:
parent
62773ae71a
commit
c7bf922209
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user