Skip to content

Commit

Permalink
[BUGFIX] Fix concurrency configuration in Github Actions 1
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabRecht committed Feb 16, 2025
1 parent e850c08 commit a012737
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,22 @@ on:
- premerge/*
- pre-merge

concurrency:
group: analyze-${{ github.ref }}
cancel-in-progress: true

jobs:
compute:
uses: ./.github/workflows/compute.yml
concurrency:
group: compute-${{ github.ref }}-analyze
cancel-in-progress: true

test:
uses: ./.github/workflows/test.yml
concurrency:
group: test-${{ github.ref }}-analyze
cancel-in-progress: true

sonar:
name: '✔ with SonarCloud'
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@ name: 🏃 dev tests

on: [ push, pull_request ]

concurrency:
group: dev-${{ github.ref }}
cancel-in-progress: true

jobs:
compute:
uses: ./.github/workflows/compute.yml
concurrency:
group: compute-${{ github.ref }}-dev
cancel-in-progress: true

test:
uses: ./.github/workflows/test.yml
concurrency:
group: test-${{ github.ref }}-dev
cancel-in-progress: true

dev:
name: 'TYPO3: ${{ matrix.typo3 }} - PHP: ${{ matrix.php }} - ${{ matrix.dependency-version }}'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ name: 🏃 tests
on: [ push, pull_request, workflow_call ]

concurrency:
group: ${{ github.head_ref || github.run_id }}
group: test-${{ github.ref }}
cancel-in-progress: true

jobs:
compute:
uses: ./.github/workflows/compute.yml
concurrency:
group: compute-${{ github.ref }}-test
cancel-in-progress: true

test:
name: 'TYPO3: ${{ matrix.typo3 }} - PHP: ${{ matrix.php }}'
Expand Down

0 comments on commit a012737

Please sign in to comment.