Skip to content

Commit

Permalink
fix: use go version from go.mod in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Oct 9, 2023
1 parent 2a07814 commit aa1a7a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: lint
on: push
env:
GO_VERSION: "1.20.8"

jobs:
buf:
Expand Down Expand Up @@ -32,7 +30,7 @@ jobs:
- name: 🐿 Setup Golang
uses: actions/setup-go@v4
with:
go-version: ${{env.GO_VERSION}}
go-version-file: 'go.mod'
# Lint go files with golangci-lint
- name: Lint go files with golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: test
on: push
env:
GO_VERSION: "1.20.8"

jobs:
test:
Expand All @@ -14,7 +12,7 @@ jobs:
- name: 🐿 Setup Golang
uses: actions/setup-go@v4
with:
go-version: ${{env.GO_VERSION}}
go-version-file: 'go.mod'
# Test & coverage report creation
- name: Test & coverage report creation
run: go test -cover -mod=readonly ./x/...

0 comments on commit aa1a7a7

Please sign in to comment.