diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index 1a9b7520..84b662a5 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -28,7 +28,7 @@ jobs: strategy: matrix: go-version: [ '1.25', '1.24' ] - terraform: ${{ fromJSON(vars.TF_VERSIONS_PROTOCOL_V5) }} + terraform: ['1.15.0-alpha20260204'] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 @@ -42,6 +42,16 @@ jobs: - run: go test -v -coverprofile=coverage.out ./... env: TF_ACC: "1" + TF_LOG: "TRACE" + TF_ACC_LOG: "TRACE" + TF_LOG_PATH_MASK: "${{ github.workspace }}/%s.log" + - name: Upload test logs on failure + if: failure() + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: go-${{ matrix.go-version }}-terraform-${{ matrix.terraform }}-test-logs + path: "**/*.log" + if-no-files-found: warn - name: Remove wildcard suffix from TF version id: tf_version run: |