1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-07 22:04:30 -04:00
v2fly/.github/workflows/coverage.yml

33 lines
623 B
YAML
Raw Normal View History

2020-06-19 15:07:58 -04:00
name: Coverage
on:
push:
2020-08-24 04:09:51 -04:00
branches: [master]
paths:
- "**/*.go"
2020-06-19 15:07:58 -04:00
jobs:
2020-08-24 04:09:51 -04:00
coverage:
2020-06-19 15:07:58 -04:00
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
2020-08-24 04:09:51 -04:00
- name: Checkout default branch
2020-06-19 15:07:58 -04:00
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
2020-08-24 04:09:51 -04:00
- name: Run coverage
2020-06-19 15:07:58 -04:00
run: ./testing/coverage/coverall2
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.txt
fail_ci_if_error: true