Chore: refine workflows (#678)

This commit is contained in:
Loyalsoldier
2021-02-17 05:16:31 +08:00
committed by GitHub
parent f94dd11a8c
commit 07a63bc901
7 changed files with 29 additions and 63 deletions
-11
View File
@@ -10,7 +10,6 @@ on:
jobs:
coverage:
if: github.repository != 'v2ray/v2ray-core'
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
@@ -21,17 +20,7 @@ jobs:
- name: Checkout codebase
uses: actions/checkout@v2
- name: Cache go module
uses: actions/cache@v2.1.4
id: cache-gomodules
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies
if: steps.cache-gomodules.outputs.cache-hit != 'true'
run: go get -v -t -d ./...
- name: Run coverage