From ce73b9a85cbf398e056bf77cb6d1a10621cfd384 Mon Sep 17 00:00:00 2001 From: chen quan Date: Mon, 24 Oct 2022 22:50:24 +0800 Subject: [PATCH] chore(action): enable cache dependency (#2549) --- .github/workflows/go.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7e8ee5db..6ba019ea 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,15 +11,17 @@ jobs: name: Linux runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go 1.x uses: actions/setup-go@v3 with: go-version: ^1.16 + check-latest: true + cache: true id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: Get dependencies run: | go get -v -t -d ./... @@ -40,13 +42,15 @@ jobs: name: Windows runs-on: windows-latest steps: + - name: Checkout codebase + uses: actions/checkout@v3 + - name: Set up Go 1.x uses: actions/setup-go@v3 with: go-version: ^1.16 - - - name: Checkout codebase - uses: actions/checkout@v3 + check-latest: true + cache: true - name: Test run: |