Skip to content

Commit

Permalink
update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Dec 20, 2023
1 parent 2dba4e8 commit 1e01a55
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,11 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.18.0

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/cache@v2
- uses: actions/setup-go@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: 1.21.5

- name: Get dependencies
run: go get -v -t -d ./...
Expand All @@ -30,9 +23,9 @@ jobs:
run: go build -v ./...

- name: Lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: v1.45.0
version: v1.54

- name: Test
run: go test -race -v -covermode atomic -coverprofile=covprofile ./...
Expand All @@ -48,13 +41,13 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 1.18.0
- uses: goreleaser/goreleaser-action@v2.2.0
go-version: 1.21.5
- uses: goreleaser/goreleaser-action@v5
with:
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.github_token }}

Expand Down

0 comments on commit 1e01a55

Please sign in to comment.