mirror of
https://github.com/v2ray/v2ray-core.git
synced 2024-04-21 12:31:52 +00:00
Coverage: cache Go modules
This commit is contained in:
@@ -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 ./...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user