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