Skip to content

Commit

Permalink
(fix) Update GitHub workflows configuration to get the Go version to …
Browse files Browse the repository at this point in the history
…use from the go.mod file
  • Loading branch information
aarmoa committed May 31, 2024
1 parent 43bd9ea commit 2ae0864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
- uses: actions/setup-python@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
go-version-file: "go.mod"
check-latest: true
- run: go install golang.org/x/tools/cmd/goimports@latest
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s - -b $(go env GOPATH)/bin v1.49.0
- run: echo "PATH=$PATH:/home/runner/go/bin" >> $GITHUB_ENV
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
fetch-depth: 2
- uses: actions/setup-go@v5
with:
go-version: 1.19
go-version-file: "go.mod"
check-latest: true
- name: Run test and calculate coverage
run: make coverage
- name: Upload coverage to Codecov
Expand Down

0 comments on commit 2ae0864

Please sign in to comment.