Skip to content

Commit 5950967

Browse files
.github/workflows: Add code check workflow.
Signed-off-by: Ramya Subramanyam <[email protected]>
1 parent 8b954f6 commit 5950967

File tree

2 files changed

+11
-71
lines changed

2 files changed

+11
-71
lines changed

.github/workflows/code_checks.yml

Lines changed: 10 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,14 @@
1-
name: Code checks
1+
name: Code Checks
22

33
on:
44
push:
5-
branches: [ '*' ]
6-
7-
defaults:
8-
run:
9-
shell: bash
10-
5+
116
jobs:
12-
setup:
13-
runs-on: ubuntu-24.04
14-
15-
container:
16-
image: docker.io/ifxmakers/makers-docker:push
17-
volumes:
18-
- .:/myLocalWorkingDir:rw
19-
options: --cpus 1
20-
21-
steps:
22-
23-
- name: Checkout actions
24-
uses: actions/checkout@v4
25-
with:
26-
submodules: true
27-
28-
- name: Set strategy matrix
29-
id: set-matrix
30-
run: |
31-
eval $(python3 tools/code_checks/codeChecks.py --getAllChecks)
32-
33-
outputs:
34-
checks: ${{ steps.set-matrix.outputs.checks }}
35-
36-
37-
codeCheckFlowStep:
38-
runs-on: ubuntu-24.04
39-
needs: setup
40-
41-
container:
42-
image: docker.io/ifxmakers/makers-docker:push
43-
volumes:
44-
- .:/myLocalWorkingDir:rw
45-
options: --cpus 1
46-
47-
strategy:
48-
49-
matrix:
50-
checks: ${{ fromJson(needs.setup.outputs.checks) }}
51-
52-
steps:
53-
54-
- name: Checkout actions
55-
uses: actions/checkout@v4
56-
with:
57-
submodules: recursive
58-
59-
60-
- name: Run all code checks
61-
id: run_build
62-
if: success() || failure()
63-
run: |
64-
echo "Workflow has these parameters :"
65-
echo "matrix.checks : " ${{ matrix.checks }}
66-
echo ""
67-
python3 tools/code_checks/codeChecks.py --runCheck ${{ matrix.checks }} --showLog
68-
continue-on-error: true
69-
70-
- name: Archive tool reports
71-
uses: actions/upload-artifact@v4
72-
with:
73-
name: ${{ matrix.checks }}
74-
path: |
75-
_results
7+
makers-devops:
8+
uses: Infineon/makers-devops/.github/workflows/code_checks.yml@fix-configs-path
9+
with:
10+
project-yaml: config/project.yml
11+
user-yaml: config/user.yml
12+
secrets: inherit
13+
14+

.gitmodules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,4 @@
7373
[submodule "extras/makers-devops"]
7474
path = extras/makers-devops
7575
url = https://github.com/Infineon/makers-devops.git
76+
branch = fix-configs-path

0 commit comments

Comments
 (0)