mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-07-02 20:15:24 +00:00
38 lines
691 B
YAML
38 lines
691 B
YAML
|
name: Coverage
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ master ]
|
||
|
pull_request:
|
||
|
branches: [ master ]
|
||
|
|
||
|
jobs:
|
||
|
|
||
|
build:
|
||
|
name: Coverage
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
|
||
|
- name: Set up Go 1.x
|
||
|
uses: actions/setup-go@v2
|
||
|
with:
|
||
|
go-version: ^1.14
|
||
|
id: go
|
||
|
|
||
|
- name: Check out code into the Go module directory
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: Get dependencies
|
||
|
run: |
|
||
|
go get -v -t -d ./...
|
||
|
|
||
|
- name: Run Coverage
|
||
|
run: ./testing/coverage/coverall2
|
||
|
|
||
|
- name: Upload coverage to Codecov
|
||
|
uses: codecov/codecov-action@v1
|
||
|
with:
|
||
|
file: ./coverage.txt
|
||
|
fail_ci_if_error: true
|