Skip to content

Commit

Permalink
ci: limit concurrency on acctests
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller committed Jan 4, 2025
1 parent 53d81f8 commit f3b6e59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test-extensive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -44,6 +49,7 @@ jobs:
timeout-minutes: 15
strategy:
fail-fast: false
max-parallel: 1
matrix:
terraform:
- '1.6.*'
Expand Down Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- run: go test -cover ./...

0 comments on commit f3b6e59

Please sign in to comment.