Skip to content

Commit

Permalink
CI concurrency improvements (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmygit authored Dec 7, 2023
1 parent 83ac69d commit 73401b9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/cdm-integrationtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
push:
branches:
- main

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
CDM-Integration-Test:
concurrency:
group: ${{ github.ref }}-${{ github.job }}-${{ matrix.jdk }}-${{ matrix.os }}
cancel-in-progress: true
strategy:
matrix:
jdk: [ 8 ]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ on:
branches:
- main

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
build:
concurrency:
group: ${{ github.ref }}-${{ github.job }}-${{ matrix.jdk }}-${{ matrix.os }}
cancel-in-progress: true

strategy:
matrix:
jdk: [ 8 ]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/snyk-cli-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ on:
branches: [ main ]
workflow_dispatch:

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
#group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job || github.run_id }}
cancel-in-progress: true

env:
SNYK_SEVERITY_THRESHOLD_LEVEL: critical

5 changes: 5 additions & 0 deletions .github/workflows/snyk-pr-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ on:
- main
workflow_dispatch:

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
#group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job || github.run_id }}
cancel-in-progress: true

0 comments on commit 73401b9

Please sign in to comment.