From b9ca0afbb5fb8aafa1e29233030f88ca3f38b9ce Mon Sep 17 00:00:00 2001 From: Abel Armoa <30988000+aarmoa@users.noreply.github.com> Date: Fri, 31 May 2024 09:49:49 -0300 Subject: [PATCH] (fix) Fix pre-commit workflow configuration --- .github/workflows/pre-commit.yml | 4 +++- .github/workflows/run-tests.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 120cd2a2..e16ece52 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,6 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/setup-python@v4 + - uses: actions/checkout@master + with: + fetch-depth: 2 - uses: actions/setup-go@v5 with: go-version-file: "go.mod" @@ -16,5 +19,4 @@ jobs: - 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 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 340df78f..1fdfffc4 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,7 +8,7 @@ jobs: run-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@master with: fetch-depth: 2 - uses: actions/setup-go@v5