diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 747d26c..a5f78a0 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -24,6 +24,9 @@ jobs: timeout-minutes: 5 steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Setup Go uses: actions/setup-go@v5 with: @@ -31,9 +34,6 @@ jobs: cache: true check-latest: true - - name: Check out code - uses: actions/checkout@v4 - - name: Run linters uses: golangci/golangci-lint-action@v4 with: @@ -78,6 +78,9 @@ jobs: - '1.8.*' steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Setup Go uses: actions/setup-go@v5 with: @@ -85,9 +88,6 @@ jobs: cache: true check-latest: true - - name: Check out code - uses: actions/checkout@v4 - - name: Setup Terraform ${{ matrix.terraform }} uses: hashicorp/setup-terraform@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dce8ff5..172a2b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,13 +21,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Check out code uses: actions/checkout@v4 - - - name: Unshallow - run: git fetch --prune --unshallow - - - name: Set up Go + + - name: Setup Go uses: actions/setup-go@v5 with: go-version-file: 'go.mod'