diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index e822c838..120cd2a2 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index c95973fc..340df78f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -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