1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 15:36:41 -05:00

Coverage: cache Go modules

This commit is contained in:
loyalsoldier 2020-08-30 23:55:00 +08:00
parent f6340dd6b5
commit 69da2f8526
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90

View File

@ -15,10 +15,20 @@ jobs:
with:
go-version: ^1.14
- name: Checkout default branch
- name: Checkout codebase
uses: actions/checkout@v2
- name: Cache go module
uses: actions/cache@v2
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 ./...