Skip to content

Commit

Permalink
Refs #21479: Include labeling check
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso committed Sep 10, 2024
1 parent 13767c2 commit 68b289e
Show file tree
Hide file tree
Showing 16 changed files with 66 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ on:
required: false
type: boolean
default: false
add-label:
description: 'Add a label to the PR'
required: false
type: boolean
default: false

pull_request:
types:
Expand Down Expand Up @@ -55,3 +60,4 @@ jobs:
ctest-args: ${{ inputs.ctest-args }}
fastdds-branch: ${{ inputs.fastdds_branch || github.ref || 'master' }}
use-ccache: ${{ ((inputs.use-ccache == true) && true) || false }}
add-label: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.repository) && true || false }}
3 changes: 3 additions & 0 deletions .github/workflows/nightly-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
ctest-args: "-LE xfail"
fastdds-branch: 'master'
use-ccache: false
add-label: false

nightly-mac-ci-2_14_x:
strategy:
Expand All @@ -35,6 +36,7 @@ jobs:
ctest-args: "-LE xfail"
fastdds-branch: '2.14.x'
use-ccache: false
add-label: false

nightly-mac-ci-2_10_x:
strategy:
Expand All @@ -50,4 +52,5 @@ jobs:
ctest-args: "-LE xfail"
fastdds-branch: '2.10.x'
use-ccache: false
add-label: false

3 changes: 3 additions & 0 deletions .github/workflows/nightly-sanitizers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
ctest_args: ''
fastdds_ref: 'master'
discovery_server_ref: 'master'
add-label: false

nightly-sanitizers-ci-2_14_x:
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
Expand All @@ -33,6 +34,7 @@ jobs:
ctest_args: ''
fastdds_ref: '2.14.x'
discovery_server_ref: 'v1.2.2'
add-label: false

nightly-sanitizers-ci-2_10_x:
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
Expand All @@ -47,3 +49,4 @@ jobs:
ctest_args: ''
fastdds_ref: '2.10.x'
discovery_server_ref: 'v1.2.1'
add-label: false
3 changes: 3 additions & 0 deletions .github/workflows/nightly-ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
run-build: true
run-tests: true
use-ccache: false
add-label: false

nightly-ubuntu-ci-2_14_x:
strategy:
Expand All @@ -45,6 +46,7 @@ jobs:
run-build: true
run-tests: true
use-ccache: false
add-label: false

nightly-ubuntu-ci-2_10_x:
strategy:
Expand All @@ -65,4 +67,5 @@ jobs:
run-build: true
run-tests: true
use-ccache: false
add-label: false

3 changes: 3 additions & 0 deletions .github/workflows/nightly-windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds_branch: 'master'
add-label: false

nightly-windows-ci-2_14_x:
strategy:
Expand All @@ -33,6 +34,7 @@ jobs:
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds_branch: '2.14.x'
add-label: false

nightly-windows-ci-2_10_x:
strategy:
Expand All @@ -47,4 +49,5 @@ jobs:
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds_branch: '2.10.x'
add-label: false

7 changes: 6 additions & 1 deletion .github/workflows/reusable-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ on:
required: false
type: boolean
default: false
add-label:
description: 'Add the CI-PENDING label to the PR'
required: false
type: boolean
default: true

defaults:
run:
Expand All @@ -49,7 +54,7 @@ jobs:
- 'RelWithDebInfo'
steps:
- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
uses: eProsima/eProsima-CI/external/add_labels@v0
with:
labels: ci-pending
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/reusable-sanitizers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ on:
Required only if the Discovery Server job is requested
required: false
type: string
add-label:
description: 'Add the CI-PENDING label to the PR'
required: false
type: boolean
default: true

defaults:
run:
Expand All @@ -56,7 +61,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
uses: eProsima/eProsima-CI/external/add_labels@v0
with:
labels: ci-pending
Expand Down Expand Up @@ -343,7 +348,7 @@ jobs:
CXX: g++-12
steps:
- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
uses: eProsima/eProsima-CI/external/add_labels@v0
with:
labels: ci-pending
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/reusable-ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ on:
required: false
type: boolean
default: false
add-label:
description: 'Add the CI-PENDING label to the PR'
required: false
type: boolean
default: true

env:
security-cmake-flag: ${{ inputs.security == true && '-DSECURITY=ON' || '-DSECURITY=OFF' }}
Expand All @@ -71,7 +76,7 @@ jobs:
- 'RelWithDebInfo'
steps:
- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
uses: eProsima/eProsima-CI/external/add_labels@v0
with:
labels: ci-pending
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/reusable-windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
required: true
type: string
add-label:
description: 'Add the CI-PENDING label to the PR'
required: false
type: boolean
default: true

defaults:
run:
Expand All @@ -40,7 +45,7 @@ jobs:
- 'v142'
steps:
- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
uses: eProsima/eProsima-CI/external/add_labels@v0
with:
labels: ci-pending
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/sanitizers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ on:
Branch or tag of Discovery Server repository (https://github.com/eProsima/Discovery-Server)
Required only if the Discovery Server job is requested
required: false
add-label:
description: 'Add a label to the PR'
required: false
type: boolean
default: false

pull_request:
types:
Expand Down Expand Up @@ -75,3 +80,4 @@ jobs:
ctest_args: ${{ inputs.ctest_args || '' }}
fastdds_ref: ${{ inputs.fastdds_ref || github.ref || 'master' }}
discovery_server_ref: ${{ inputs.discovery_server_ref || 'master' }}
add-label: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.repository) && true || false }}
6 changes: 6 additions & 0 deletions .github/workflows/ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ on:
required: false
type: boolean
default: false
add-label:
description: 'Add a label to the PR'
required: false
type: boolean
default: false

pull_request:
types:
Expand Down Expand Up @@ -69,3 +74,4 @@ jobs:
run-build: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
run-tests: ${{ ((inputs.run-tests == true) && true) || (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'no-test')) }}
use-ccache: ${{ ((inputs.use-ccache == true) && true) || false }}
add-label: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.repository) && true || false }}
1 change: 1 addition & 0 deletions .github/workflows/weekly-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ jobs:
ctest-args: "-LE xfail"
fastdds-branch: '2.6.x'
use-ccache: false
add-label: false
1 change: 1 addition & 0 deletions .github/workflows/weekly-sanitizers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ jobs:
ctest_args: ''
fastdds_ref: '2.6.x'
discovery_server_ref: 'v1.2.1'
add-label: false
2 changes: 2 additions & 0 deletions .github/workflows/weekly-ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run-build: true
run-tests: true
use-ccache: false
add-label: false

weekly-ubuntu-ci-2_6_x:
strategy:
Expand All @@ -46,3 +47,4 @@ jobs:
run-build: true
run-tests: true
use-ccache: false
add-label: false
1 change: 1 addition & 0 deletions .github/workflows/weekly-windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds_branch: '2.6.x'
add-label: false
6 changes: 6 additions & 0 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
type: string
required: true
add-label:
description: 'Add a label to the PR'
required: false
type: boolean
default: false

pull_request:
types:
Expand All @@ -49,3 +54,4 @@ jobs:
cmake-args: '-DSECURITY=ON ${{ inputs.cmake-args }}'
ctest-args: ${{ inputs.ctest-args }}
fastdds_branch: ${{ inputs.fastdds_branch || github.ref || 'master' }}
add-label: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.repository) && true || false }}

0 comments on commit 68b289e

Please sign in to comment.