Skip to content

Commit

Permalink
ci: update actions/setup-go to v4
Browse files Browse the repository at this point in the history
This brings automatic build caches.
  • Loading branch information
dmke committed Mar 16, 2023
1 parent c17f6d9 commit 4b8a6c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

Expand Down
20 changes: 2 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,13 @@ jobs:

steps:
- name: Setup Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Checkout code
uses: actions/checkout@v3

- name: Cache Go modules
uses: actions/cache@v3.3.1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-${{ env.GO_VERSION }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ env.GO_VERSION }}-go-
- name: Run tests
run: make test

Expand All @@ -47,21 +39,13 @@ jobs:

steps:
- name: Setup Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Checkout code
uses: actions/checkout@v3

- name: Cache Go modules
uses: actions/cache@v3.3.1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-${{ env.GO_VERSION }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ env.GO_VERSION }}-go-
- name: Run linter
uses: golangci/golangci-lint-action@v3
with:
Expand Down

0 comments on commit 4b8a6c6

Please sign in to comment.