mirror of
https://github.com/luscis/openlan.git
synced 2026-04-23 15:59:29 +08:00
fea: add coverage actions
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
name: Coverage CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup golang
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.16.x'
|
||||
|
||||
- name: Generate coverage report
|
||||
run: make cover
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
files: ./coverage.cov
|
||||
name: codecov
|
||||
verbose: true
|
||||
Reference in New Issue
Block a user