mirror of
https://github.com/taigrr/bitcask
synced 2025-01-18 04:03:17 -08:00
* Added Github Actions workflow for Reviewing, Building and Testing * Added codecov workflow * Fix version of Go used for codecov workflow * Fixed coverage options
20 lines
493 B
YAML
20 lines
493 B
YAML
name: Coverage
|
|
on: [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 }}
|