From f3b6e5964527e6b73f6cde2e812a750e3de59a14 Mon Sep 17 00:00:00 2001 From: joe miller Date: Sat, 4 Jan 2025 18:27:15 +0000 Subject: [PATCH] ci: limit concurrency on acctests --- .github/workflows/test-extensive.yml | 7 +++++++ .github/workflows/test.yml | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-extensive.yml b/.github/workflows/test-extensive.yml index 8b28264..abc2cdb 100644 --- a/.github/workflows/test-extensive.yml +++ b/.github/workflows/test-extensive.yml @@ -18,6 +18,11 @@ on: permissions: contents: read +# Ensures only 1 action runs per PR and previous is canceled on new trigger +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: name: build @@ -44,6 +49,7 @@ jobs: timeout-minutes: 15 strategy: fail-fast: false + max-parallel: 1 matrix: terraform: - '1.6.*' @@ -73,6 +79,7 @@ jobs: if: '!github.event.pull_request.head.repo.fork' timeout-minutes: 15 strategy: + max-parallel: 1 fail-fast: false matrix: tofu: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fae1c19..c4e81e9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,5 +63,4 @@ jobs: - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: go-version-file: 'go.mod' - - run: go test -cover ./... - timeout-minutes: 10 \ No newline at end of file + - run: go test -cover ./... \ No newline at end of file