mirror of
https://github.com/taigrr/bitcask
synced 2025-01-18 04:03:17 -08:00
24 lines
531 B
YAML
24 lines
531 B
YAML
name: Coverage
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
jobs:
|
|
test:
|
|
name: Test and Report
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.13.x
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Test
|
|
run: go test -v -cover -coverprofile=coverage.txt -covermode=atomic -race .
|
|
- name: Report
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|