From e296441491d4f9c1d262899d833942bac5a6d78b Mon Sep 17 00:00:00 2001 From: cullenmcdermott Date: Mon, 31 Jul 2023 18:42:51 -0600 Subject: [PATCH] limit parallel runs and utilize retry action --- .github/workflows/test.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea6515a..ef710b0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,8 +52,8 @@ jobs: timeout-minutes: 15 strategy: fail-fast: false + max-parallel: 2 matrix: - # list whatever Terraform versions here you would like to support terraform: - '1.0.*' - '1.1.*' @@ -72,8 +72,13 @@ jobs: terraform_version: ${{ matrix.terraform }} terraform_wrapper: false - run: go mod download - - env: + - uses: nick-fields/retry@v2 + env: TF_ACC: "1" PORKBUN_API_KEY: ${{ secrets.PORKBUN_API_KEY }} PORKBUN_SECRET_KEY: ${{ secrets.PORKBUN_SECRET_KEY }} - run: go test -v -cover ./internal/provider/ + with: + timeout_minutes: 10 + max_attempts: 5 + shell: sh + command: go test -v -cover ./internal/provider/