Skip to content

Commit

Permalink
chore(action): enable cache dependency (zeromicro#2549)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenquan authored Oct 24, 2022
1 parent 4d2a146 commit ce73b9a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand All @@ -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: |
Expand Down

0 comments on commit ce73b9a

Please sign in to comment.