Skip to content

Commit

Permalink
chore: use setup-go and pin to go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Dec 1, 2023
1 parent 5ff1fdd commit a47bead
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.4

go-version-file: go.mod
- name: Generate
run: go generate -v ./...

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
5 changes: 5 additions & 0 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.21.4
go-version-file: go.mod
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down

0 comments on commit a47bead

Please sign in to comment.