CasaOS/.github/workflows/codecov.yml

27 lines
560 B
YAML
Raw Normal View History

2023-01-16 22:58:25 +00:00
name: Collect Code Coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
2023-01-16 22:58:25 +00:00
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
2023-01-16 22:58:25 +00:00
- name: Run coverage
run: go test -race -failfast -coverprofile=coverage.txt -covermode=atomic -v ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3