tcell/.github/workflows/coverage.yml

39 lines
855 B
YAML
Raw Normal View History

2022-09-01 02:09:04 +08:00
name: coverage
on: [push]
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
2024-08-23 03:20:08 +08:00
- name: Check out code into the Go module directory
uses: actions/checkout@v4
2022-09-01 02:09:04 +08:00
- name: Set up Go
uses: actions/setup-go@v5
2022-09-01 02:09:04 +08:00
with:
go-version: 1.18
id: go
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Test
2022-09-01 02:20:37 +08:00
run: go test -coverpkg="github.com/gdamore/tcell/v2/..." -covermode=count -coverprofile="coverage.txt" ./...
2022-09-01 02:09:04 +08:00
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.3.0
2022-09-01 02:09:04 +08:00
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
flags: unittests
name: codecov-umbrella
yml: ./codecov.yml