Skip to content

Commit

Permalink
Merge pull request #467 from roots/gh-action-go-mod
Browse files Browse the repository at this point in the history
GitHub Actions: Use `actions/setup-go@v5`
  • Loading branch information
swalkinshaw authored Sep 9, 2024
2 parents b934f4a + ebf565f commit 1e0d6ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.23
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version-file: 'go.mod'
- name: Test
run: go test -v -short ./...

Expand All @@ -33,9 +25,9 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.23
go-version-file: 'go.mod'
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.23
go-version-file: 'go.mod'
- name: GoReleaser release
uses: goreleaser/goreleaser-action@v4
with:
Expand Down

0 comments on commit 1e0d6ea

Please sign in to comment.