mirror of
https://github.com/apache/rocketmq.git
synced 2026-08-28 20:09:14 +08:00
Configure GitHub workflows to use concurrency cancel-in-progress for (#10445)
See recommended best practices at Apache https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=GitHub+Actions+Recommended+Practices Signed-off-by: Aurélien Pupier <apupier@ibm.com>
This commit is contained in:
@@ -8,6 +8,10 @@ on:
|
||||
- develop
|
||||
- bazel
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "bazel-compile (${{ matrix.os }})"
|
||||
|
||||
@@ -7,6 +7,10 @@ on:
|
||||
branches:
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
CodeQL-Build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -4,6 +4,11 @@ on:
|
||||
types: [opened, reopened, synchronize]
|
||||
push:
|
||||
branches: [master, develop]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
calculate-coverage:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -5,6 +5,10 @@ on:
|
||||
push:
|
||||
branches: [master, develop]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
it-test:
|
||||
name: "maven-compile (${{ matrix.os }}, JDK-${{ matrix.jdk }})"
|
||||
|
||||
@@ -22,6 +22,10 @@ on:
|
||||
- develop
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
check-license:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -5,6 +5,10 @@ on:
|
||||
push:
|
||||
branches: [master, develop, bazel]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
java_build:
|
||||
name: "maven-compile (${{ matrix.os }}, JDK-${{ matrix.jdk }})"
|
||||
|
||||
@@ -4,6 +4,11 @@ on:
|
||||
types: [opened, reopened, synchronize]
|
||||
push:
|
||||
branches: [master, develop]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
misspell-check:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user