mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
Test: refine & cache Go modules
This commit is contained in:
parent
42e33ddde6
commit
c974908e19
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@ -7,6 +7,7 @@ on:
|
||||
- "**/*.go"
|
||||
pull_request:
|
||||
branches: [master]
|
||||
types: [opened, synchronize, reopened]
|
||||
paths:
|
||||
- "**/*.go"
|
||||
|
||||
@ -22,12 +23,15 @@ jobs:
|
||||
with:
|
||||
go-version: ^1.14
|
||||
|
||||
- name: Checkout default branch
|
||||
- name: Checkout codebase
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get dependencies
|
||||
run: |
|
||||
go get -v -t -d ./...
|
||||
- name: Cache go module
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: ${{ runner.os }}-go-
|
||||
|
||||
- name: Test
|
||||
run: go test -parallel 1 -timeout 6h -v ./...
|
||||
run: go test -timeout 1h -v ./...
|
||||
|
Loading…
Reference in New Issue
Block a user