1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-03-15 02:45:20 -04:00
Files
v2fly/.github/workflows/coverage.yml

36 lines
689 B
YAML
Raw Normal View History

2020-06-20 03:07:58 +08:00
name: Coverage
on:
push:
branches:
- master
- v*
paths:
- "**/*.go"
2020-06-20 03:07:58 +08:00
jobs:
2020-08-24 16:09:51 +08:00
coverage:
2020-06-20 03:07:58 +08:00
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16.2
2020-06-20 03:07:58 +08:00
2020-08-30 23:55:00 +08:00
- name: Checkout codebase
2020-06-20 03:07:58 +08:00
uses: actions/checkout@v2
- name: Get dependencies
2020-12-02 21:57:31 +08:00
run: go get -v -t -d ./...
2020-06-20 03:07:58 +08:00
2020-08-24 16:09:51 +08:00
- name: Run coverage
2020-12-02 21:57:31 +08:00
run: |
chmod u+x ./testing/coverage/coverall.sh
./testing/coverage/coverall.sh
2020-06-20 03:07:58 +08:00
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.txt
fail_ci_if_error: true