diff --git a/.github/workflows/acceptance-tests.yaml b/.github/workflows/acceptance-tests.yaml index 3d015383c..9633fb46f 100644 --- a/.github/workflows/acceptance-tests.yaml +++ b/.github/workflows/acceptance-tests.yaml @@ -43,12 +43,13 @@ jobs: - webhosting runs-on: ubuntu-latest steps: + # Checkout should always be before setup-go to ensure caching is working + - name: Checkout + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: go-version: 1.22 - - name: Checkout - uses: actions/checkout@v4 - name: Run Acceptance Tests run: go test -v ./internal/services/${{ matrix.products }} -timeout=2h env: @@ -66,12 +67,13 @@ jobs: fail-fast: false runs-on: ubuntu-latest steps: + # Checkout should always be before setup-go to ensure caching is working + - name: Checkout + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: go-version: 1.22 - - name: Checkout - uses: actions/checkout@v4 - name: Run scwconfig tests run: go test -v ./internal/services/scwconfig -timeout=2m env: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 66c7bd45b..7d6f9c079 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,6 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: + # Checkout should always be before setup-go to ensure caching is working - uses: actions/checkout@v4 with: fetch-depth: 2 diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 207190db0..75a04a847 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -38,6 +38,7 @@ jobs: misspell: runs-on: ubuntu-latest steps: + # Checkout should always be before setup-go to ensure caching is working - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2a1aca685..c20e9adf9 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -44,12 +44,13 @@ jobs: - webhosting runs-on: ubuntu-latest steps: + # Checkout should always be before setup-go to ensure caching is working + - name: Checkout + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: go-version: 1.22 - - name: Checkout - uses: actions/checkout@v4 - name: Run Acceptance Tests run: go test -v ./internal/services/${{ matrix.products }} -timeout=4h env: @@ -92,12 +93,13 @@ jobs: needs: nightly if: always() steps: + # Checkout should always be before setup-go to ensure caching is working + - name: Checkout + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: go-version: 1.22 - - name: Checkout - uses: actions/checkout@v4 - name: Run sweepers run: make sweep env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 995dd989c..31ac5be6d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,7 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: + # Checkout should always be before setup-go to ensure caching is working - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/tfproviderlint.yml b/.github/workflows/tfproviderlint.yml index 0731a6729..0f36a4500 100644 --- a/.github/workflows/tfproviderlint.yml +++ b/.github/workflows/tfproviderlint.yml @@ -9,6 +9,7 @@ jobs: tfproviderlint: runs-on: ubuntu-latest steps: + # Checkout should always be before setup-go to ensure caching is working - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: @@ -20,6 +21,7 @@ jobs: tfproviderdocs: runs-on: ubuntu-latest steps: + # Checkout should always be before setup-go to ensure caching is working - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 6c85210c4..8897fb51f 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -12,14 +12,15 @@ jobs: platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go-version }} + # Checkout should always be before setup-go to ensure caching is working - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 1 + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} - name: Build binaries run: make build - name: Run unit tests