Skip to content

Commit 272fed1

Browse files
committed
fix formatting
1 parent 32fccf2 commit 272fed1

18 files changed

Lines changed: 61 additions & 88 deletions

.github/workflows/reusable_build_and_test_autosd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# *******************************************************************************
1313
name: AutoSD - Build & Integration Test
1414
on:
15-
workflow_dispatch:
15+
workflow_call:
1616
# pull_request:
1717
# types: [opened, reopened, synchronize]
1818
# merge_group:
@@ -45,7 +45,7 @@ jobs:
4545
if: github.event_name == 'workflow_dispatch'
4646
run: |
4747
echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
48-
python3 scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir bazel_common/
48+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
4949
cat bazel_common/score_modules_*.MODULE.bazel
5050
echo "::endgroup::"
5151
- name: Setup Bazel

.github/workflows/reusable_build_and_test_ebclfsa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# *******************************************************************************
1313
name: EB corbos Linux for Safety Applications - Build & Integration Test
1414
on:
15-
workflow_dispatch:
15+
workflow_call:
1616
# pull_request:
1717
# types: [opened, reopened, synchronize]
1818
# merge_group:
@@ -44,7 +44,7 @@ jobs:
4444
if: github.event_name == 'workflow_dispatch'
4545
run: |
4646
echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
47-
python3 scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir bazel_common/
47+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
4848
cat bazel_common/score_modules_*.MODULE.bazel
4949
echo "::endgroup::"
5050
- name: Setup Bazel

.github/workflows/reusable_build_and_test_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# *******************************************************************************
1313
name: Linux - Build & Integration Test
1414
on:
15-
workflow_dispatch:
15+
workflow_call:
1616
# pull_request:
1717
# release:
1818
# types: [created]
@@ -42,7 +42,7 @@ jobs:
4242
if: github.event_name == 'workflow_dispatch'
4343
run: |
4444
echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
45-
python3 scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir bazel_common/
45+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
4646
cat bazel_common/score_modules_*.MODULE.bazel
4747
echo "::endgroup::"
4848
- name: Set up Docker Buildx

.github/workflows/reusable_build_and_test_qnx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# *******************************************************************************
1313
name: QNX8 - Build & Integration Test
1414
on:
15-
workflow_dispatch:
15+
workflow_call:
1616
# pull_request_target:
1717
# types: [opened, reopened, synchronize]
1818
# merge_group:
@@ -49,7 +49,7 @@ jobs:
4949
if: github.event_name == 'workflow_dispatch'
5050
run: |
5151
echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
52-
python3 scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir bazel_common/
52+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
5353
cat bazel_common/score_modules_*.MODULE.bazel
5454
echo "::endgroup::"
5555
- name: Setup Bazel with shared caching

.github/workflows/reusable_codeql-multiple-repo-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919
# push:
2020
# branches:
2121
# - main
22+
workflow_call:
2223
release:
2324
types: [created]
2425
workflow_dispatch:

.github/workflows/reusable_integration-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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_sw-check.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@
7272
#
7373
# Notes:
7474
# - Extend the matrix in `integration-test` to cover additional configs.
75-
7675
name: Module Smoke Test
77-
7876
on:
7977
workflow_call:
8078
inputs:
@@ -106,10 +104,8 @@ on:
106104
REPO_READ_TOKEN:
107105
description: 'Token for reading repositories'
108106
required: false
109-
110107
env:
111108
REFERENCE_INTEGRATION_REPO: ${{ vars.reference_integration_repo != '' && vars.reference_integration_repo || 'eclipse-score/reference_integration' }}
112-
113109
jobs:
114110
preparation:
115111
name: Preparation
@@ -145,7 +141,6 @@ jobs:
145141
echo "Using pinned known_good.json from repository"
146142
cp known_good.json known_good.updated.json
147143
fi
148-
149144
env:
150145
GITHUB_TOKEN: ${{ secrets.REPO_READ_TOKEN != '' && secrets.REPO_READ_TOKEN || github.token }}
151146
- name: Show updated known_good.json and MODULE.bazel files
@@ -163,45 +158,38 @@ jobs:
163158
if-no-files-found: error
164159
name: known_good.updated.json
165160
path: known_good.updated.json
166-
167161
utest:
168162
name: Unit Tests
169163
needs: preparation
170164
uses: ./.github/workflows/reusable_test_and_docs.yml
171165
secrets: inherit
172-
173166
docs:
174167
name: Generate Documentation
175168
runs-on: ubuntu-latest
176169
needs: utest
177170
steps:
178171
- name: not implemented
179172
run: echo "separate doc workflow"
180-
181173
build_and_test_autosd:
182174
name: build_and_test_autosd
183175
needs: docs
184176
uses: ./.github/workflows/reusable_build_and_test_autosd.yml
185177
secrets: inherit
186-
187178
build_and_test_ebclfsa:
188179
name: build_and_test_ebclfsa
189180
needs: docs
190181
uses: ./.github/workflows/reusable_build_and_test_ebclfsa.yml
191182
secrets: inherit
192-
193183
build_and_test_linux:
194184
name: build_and_test_linux
195185
needs: docs
196186
uses: ./.github/workflows/reusable_build_and_test_linux.yml
197187
secrets: inherit
198-
199188
build_and_test_qnx:
200189
name: build_and_test_qnx
201190
needs: docs
202191
uses: ./.github/workflows/reusable_build_and_test_qnx.yml
203192
secrets: inherit
204-
205193
summary:
206194
name: Publish Summary
207195
runs-on: ubuntu-latest

.github/workflows/reusable_test_and_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
pull-requests: write
1818
id-token: write
1919
on:
20-
workflow_dispatch:
20+
workflow_call:
2121
# pull_request_target: # Allows forks to trigger the docs build
2222
# types: [opened, reopened, synchronize]
2323
# push:
@@ -75,7 +75,7 @@ jobs:
7575
if: github.event_name == 'workflow_dispatch'
7676
run: |
7777
echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
78-
python3 scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir bazel_common/
78+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
7979
cat bazel_common/score_modules_*.MODULE.bazel
8080
echo "::endgroup::"
8181
- name: Execute Unit Tests with Coverage Analysis

.github/workflows/sw-auto-update-deps-workflow.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010
#
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
13-
1413
# Nightly / manual integration tests: updates all modules to latest HEAD on their branch.
15-
1614
name: Integration Tests (Nightly)
1715
on:
1816
workflow_dispatch:
1917
schedule:
20-
- cron: '30 2 * * *' # Every night at 02:30 UTC on main-etas branch
18+
- cron: '30 2 * * *' # Every night at 02:30 UTC on main-etas branch
2119
jobs:
2220
sw-check:
2321
uses: ./.github/workflows/reusable_sw-check.yml
@@ -26,7 +24,6 @@ jobs:
2624
update_to_latest: true
2725
repo_runner_labels: 'ubuntu-latest'
2826
target_branch: '${{ github.ref }}'
29-
3027
update_known_good:
3128
name: update_known_good
3229
runs-on: ubuntu-latest
@@ -43,17 +40,17 @@ jobs:
4340
if: github.event_name == 'workflow_dispatch'
4441
run: |
4542
echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
46-
python3 scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir bazel_common/
43+
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
4744
cat bazel_common/score_modules_*.MODULE.bazel
4845
echo "::endgroup::"
49-
# - name: push changes if there are any
50-
# run: |
51-
# git config user.name "github-actions[bot]"
52-
# git config user.email "github-actions[bot]@users.noreply.github.com"
53-
# if [[ -n $(git status --porcelain) ]]; then
54-
# git add .
55-
# git commit -m "Update known_good.json and MODULE.bazel files to latest HEAD"
56-
# git push
57-
# else
58-
# echo "No changes to push"
59-
# fi
46+
# - name: push changes if there are any
47+
# run: |
48+
# git config user.name "github-actions[bot]"
49+
# git config user.email "github-actions[bot]@users.noreply.github.com"
50+
# if [[ -n $(git status --porcelain) ]]; then
51+
# git add .
52+
# git commit -m "Update known_good.json and MODULE.bazel files to latest HEAD"
53+
# git push
54+
# else
55+
# echo "No changes to push"
56+
# fi

.github/workflows/sw-pr-workflow.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,18 @@
1212
# *******************************************************************************
1313
# Workflow configuration for S-CORE CI - Bazel Build & Test baselibs
1414
# This workflow runs Bazel build and test when triggered by specific pull request events.
15-
1615
name: Integration Tests (PR)
1716
on:
1817
workflow_dispatch:
1918
pull_request_target:
2019
types: [opened, reopened, synchronize]
21-
2220
jobs:
2321
codeql-scan:
2422
uses: ./.github/workflows/reusable_codeql-multiple-repo-scan.yml
2523
secrets: inherit
26-
2724
integration_test:
2825
uses: ./.github/workflows/reusable_sw-check.yml
2926
secrets: inherit
3027
with:
3128
repo_runner_labels: 'ubuntu-latest'
32-
target_branch: '${{ github.ref }}'
29+
target_branch: '${{ github.ref }}'

0 commit comments

Comments
 (0)