mirror of https://github.com/aldy505/bob.git
23 lines
502 B
YAML
23 lines
502 B
YAML
name: Test and coverage
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17.x
|
|
|
|
- name: Run coverage
|
|
run: go test -v -race -coverprofile=coverage.out -covermode=atomic -failfast
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v1 |