Skip to content

Commit 26c3c4e

Browse files
committed
add unified workflow
1 parent 4f4793c commit 26c3c4e

18 files changed

+523
-122
lines changed

.github/workflows/known_good_correct.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v4.2.2
27+
uses: actions/checkout@v6.0.2
2828
- name: Check
2929
run: |
3030
scripts/known_good/update_module_from_known_good.py --known known_good.json --output-dir-modules bazel_common

.github/workflows/build_and_test_autosd.yml renamed to .github/workflows/reusable_build_and_test_autosd.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
# *******************************************************************************
1313
name: AutoSD - Build & Integration Test
1414
on:
15-
pull_request:
16-
types: [opened, reopened, synchronize]
17-
merge_group:
18-
types: [checks_requested]
19-
push:
20-
branches:
21-
- main
15+
workflow_call:
16+
# pull_request:
17+
# types: [opened, reopened, synchronize]
18+
# merge_group:
19+
# types: [checks_requested]
20+
# push:
21+
# branches:
22+
# - main
2223
# Do not flood CI with unneeded previous runs in PR
2324
concurrency:
2425
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
@@ -34,7 +35,19 @@ jobs:
3435
- name: Clean disk space
3536
uses: eclipse-score/more-disk-space@v1
3637
- name: Checkout repository
37-
uses: actions/checkout@v4
38+
uses: actions/checkout@v6.0.2
39+
- name: download known_good.updated.json artifact
40+
if: github.event_name == 'workflow_call'
41+
uses: actions/download-artifact@v4
42+
with:
43+
name: known_good.updated.json
44+
- name: update MODULE.bazel files
45+
if: github.event_name == 'workflow_call'
46+
run: |
47+
echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
48+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
49+
cat bazel_common/score_modules_*.MODULE.bazel
50+
echo "::endgroup::"
3851
- name: Setup Bazel
3952
uses: bazel-contrib/setup-bazel@0.18.0
4053
with:

.github/workflows/build_and_test_ebclfsa.yml renamed to .github/workflows/reusable_build_and_test_ebclfsa.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
# *******************************************************************************
1313
name: EB corbos Linux for Safety Applications - Build & Integration Test
1414
on:
15-
pull_request:
16-
types: [opened, reopened, synchronize]
17-
merge_group:
18-
types: [checks_requested]
19-
push:
20-
branches:
21-
- main
15+
workflow_call:
16+
# pull_request:
17+
# types: [opened, reopened, synchronize]
18+
# merge_group:
19+
# types: [checks_requested]
20+
# push:
21+
# branches:
22+
# - main
2223
# Do not flood CI with unneeded previous runs in PR
2324
concurrency:
2425
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
@@ -33,7 +34,19 @@ jobs:
3334
- name: Clean disk space
3435
uses: eclipse-score/more-disk-space@v1
3536
- name: Checkout repository
36-
uses: actions/checkout@v4
37+
uses: actions/checkout@v6.0.2
38+
- name: download known_good.updated.json artifact
39+
if: github.event_name == 'workflow_call'
40+
uses: actions/download-artifact@v4
41+
with:
42+
name: known_good.updated.json
43+
- name: update MODULE.bazel files
44+
if: github.event_name == 'workflow_call'
45+
run: |
46+
echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
47+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
48+
cat bazel_common/score_modules_*.MODULE.bazel
49+
echo "::endgroup::"
3750
- name: Setup Bazel
3851
uses: bazel-contrib/setup-bazel@0.18.0
3952
with:

.github/workflows/build_and_test_linux.yml renamed to .github/workflows/reusable_build_and_test_linux.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# *******************************************************************************
1313
name: Linux - Build & Integration Test
1414
on:
15-
workflow_dispatch:
16-
pull_request:
17-
release:
18-
types: [created]
19-
push:
20-
branches:
21-
- main
15+
workflow_call:
16+
# pull_request:
17+
# release:
18+
# types: [created]
19+
# push:
20+
# branches:
21+
# - main
2222
# Do not flood CI with unneeded previous runs in PR
2323
concurrency:
2424
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
@@ -32,7 +32,19 @@ jobs:
3232
- name: Clean disk space
3333
uses: eclipse-score/more-disk-space@v1
3434
- name: Checkout repository
35-
uses: actions/checkout@v4.2.2
35+
uses: actions/checkout@v6.0.2
36+
- name: download known_good.updated.json artifact
37+
if: github.event_name == 'workflow_call'
38+
uses: actions/download-artifact@v4
39+
with:
40+
name: known_good.updated.json
41+
- name: update MODULE.bazel files
42+
if: github.event_name == 'workflow_call'
43+
run: |
44+
echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
45+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
46+
cat bazel_common/score_modules_*.MODULE.bazel
47+
echo "::endgroup::"
3648
- name: Set up Docker Buildx
3749
uses: docker/setup-buildx-action@v3.8.0
3850
- name: Setup Bazel

.github/workflows/build_and_test_qnx.yml renamed to .github/workflows/reusable_build_and_test_qnx.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
# *******************************************************************************
1313
name: QNX8 - Build & Integration Test
1414
on:
15-
pull_request_target:
16-
types: [opened, reopened, synchronize]
17-
merge_group:
18-
types: [checks_requested]
19-
push:
20-
branches:
21-
- main
15+
workflow_call:
16+
# pull_request_target:
17+
# types: [opened, reopened, synchronize]
18+
# merge_group:
19+
# types: [checks_requested]
20+
# push:
21+
# branches:
22+
# - main
2223
# Do not flood CI with unneeded previous runs in PR
2324
concurrency:
2425
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
@@ -35,10 +36,22 @@ jobs:
3536
- name: Clean disk space
3637
uses: eclipse-score/more-disk-space@v1
3738
- name: Checkout repository (Handle all events)
38-
uses: actions/checkout@v4.2.2
39+
uses: actions/checkout@v6.0.2
3940
with:
4041
ref: ${{ github.head_ref || github.event.pull_request.head.ref || github.ref }}
4142
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
43+
- name: download known_good.updated.json artifact
44+
if: github.event_name == 'workflow_call'
45+
uses: actions/download-artifact@v4
46+
with:
47+
name: known_good.updated.json
48+
- name: update MODULE.bazel files
49+
if: github.event_name == 'workflow_call'
50+
run: |
51+
echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
52+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
53+
cat bazel_common/score_modules_*.MODULE.bazel
54+
echo "::endgroup::"
4255
- name: Setup Bazel with shared caching
4356
uses: bazel-contrib/setup-bazel@0.18.0
4457
with:

.github/workflows/codeql-multiple-repo-scan.yml renamed to .github/workflows/reusable_codeql-multiple-repo-scan.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
# *******************************************************************************
1313
name: "CodeQL - Multi-Repo Source Scan"
1414
on:
15-
pull_request:
16-
types: [opened, reopened, synchronize]
17-
merge_group:
18-
types: [checks_requested]
19-
push:
20-
branches:
21-
- main
15+
# pull_request:
16+
# types: [opened, reopened, synchronize]
17+
# merge_group:
18+
# types: [checks_requested]
19+
# push:
20+
# branches:
21+
# - main
22+
workflow_call:
2223
release:
2324
types: [created]
2425
workflow_dispatch:
@@ -39,9 +40,9 @@ jobs:
3940
contents: read
4041
steps:
4142
- name: Checkout central repository
42-
uses: actions/checkout@v4
43+
uses: actions/checkout@v6.0.2
4344
- name: Checkout CodeQL Coding Standards scripts
44-
uses: actions/checkout@v4
45+
uses: actions/checkout@v6.0.2
4546
with:
4647
repository: github/codeql-coding-standards
4748
path: codeql-coding-standards-repo # Klonen in diesen Ordner

.github/workflows/reusable_integration-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
- name: Clean disk space
9797
uses: eclipse-score/more-disk-space@v1
9898
- name: Checkout repository
99-
uses: actions/checkout@v4.2.2
99+
uses: actions/checkout@v6.0.2
100100
with:
101101
repository: ${{ env.REFERENCE_INTEGRATION_REPO }}
102102
ref: ${{ inputs.target_branch || 'main' }}
@@ -121,7 +121,7 @@ jobs:
121121
echo "::endgroup::"
122122
123123
echo "::group::update score_modules.MODULE.bazel"
124-
python3 scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir bazel_common/
124+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
125125
cat bazel_common/score_modules.MODULE.bazel
126126
echo "::endgroup::"
127127
env:

.github/workflows/reusable_smoke-test.yml renamed to .github/workflows/reusable_smoke-test-bak.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
known_good_updated: ${{ steps.set_known_good.outputs.known_good_updated }}
9494
steps:
9595
- name: Checkout repository
96-
uses: actions/checkout@v4.2.2
96+
uses: actions/checkout@v6.0.2
9797
with:
9898
repository: ${{ env.REFERENCE_INTEGRATION_REPO }}
9999
ref: ${{ inputs.target_branch }}
@@ -163,7 +163,7 @@ jobs:
163163
if: always()
164164
steps:
165165
- name: Checkout repository
166-
uses: actions/checkout@v4.2.2
166+
uses: actions/checkout@v6.0.2
167167
with:
168168
repository: ${{ env.REFERENCE_INTEGRATION_REPO }}
169169
ref: ${{ inputs.target_branch }}

0 commit comments

Comments
 (0)