2021-10-27 14:59:57 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
coverage:
|
|
|
|
name: Coverage
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2024-02-11 12:55:22 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-10-27 14:59:57 +00:00
|
|
|
|
|
|
|
- name: Install Go
|
2024-02-11 12:55:22 +00:00
|
|
|
uses: actions/setup-go@v4
|
2021-10-27 14:59:57 +00:00
|
|
|
with:
|
2024-02-11 12:55:22 +00:00
|
|
|
go-version: 1.21.x
|
2021-10-27 14:59:57 +00:00
|
|
|
|
|
|
|
- name: Run coverage
|
|
|
|
run: go test -v -race -coverprofile=coverage.out -covermode=atomic -failfast ./...
|
|
|
|
|
|
|
|
- name: Upload coverage to Codecov
|
2024-02-11 12:55:22 +00:00
|
|
|
uses: codecov/codecov-action@v4
|