Skip to content

fix(httpclient): retry timed-out requests, stop replaying POST and PATCH #407

fix(httpclient): retry timed-out requests, stop replaying POST and PATCH

fix(httpclient): retry timed-out requests, stop replaying POST and PATCH #407

Workflow file for this run

# Terraform Provider testing workflow.
name: Tests
on:
pull_request:
paths-ignore:
- "README.md"
- "docs/**"
push:
branches:
- main
paths-ignore:
- "README.md"
- "docs/**"
# Testing only needs permissions to read the repository contents.
permissions:
contents: read
jobs:
# Ensure project builds before running testing matrix
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: 'go.mod'
cache: true
- run: go mod download
- run: go build -v .
- name: Run linters
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
with:
version: latest
# Run unit tests in a matrix with Terraform CLI versions
# Note: Acceptance tests in ./testacc/ require POSTHOG_API_KEY and should be run separately
test:
name: Unit Tests
needs: build
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
terraform:
- '1.13.*'
- '1.14.*'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: 'go.mod'
cache: true
- uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod download
- run: go test -v -cover ./internal/...
timeout-minutes: 10