Skip to content

Commit

Permalink
ci: use go-version-file in setup-go step (#59)
Browse files Browse the repository at this point in the history
* ci: use go-version-file in setup-go step

* ci: rename build step

* cd: use go-version-file in setup-go
  • Loading branch information
simonwhitaker authored Aug 5, 2023
1 parent f94698d commit 5090e02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
go-version: stable
go-version-file: go.mod
# More assembly might be required: Docker logins, GPG, etc. It all depends
# on your needs.
- uses: goreleaser/goreleaser-action@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ on:
branches: ["main"]

jobs:
build:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version-file: go.mod

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

0 comments on commit 5090e02

Please sign in to comment.