diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ba4a3f6b..e822c838 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -8,10 +8,12 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - uses: actions/setup-python@v4 - uses: actions/setup-go@v5 + with: + go-version: 1.19 - 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 + - uses: actions/checkout@v3 - uses: pre-commit/action@v2.0.2