mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 06:33:14 +08:00
Chore: add cache for github actions
This commit is contained in:
parent
e48ccdd4c8
commit
3b0cc8548c
10
.github/workflows/go.yml
vendored
10
.github/workflows/go.yml
vendored
@ -13,8 +13,16 @@ jobs:
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Cache go module
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Get dependencies
|
||||
- name: Get dependencies and run test
|
||||
run: |
|
||||
go test ./...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user