Skip to content

Commit 0a98147

Browse files
nashifMaureenHelm
authored andcommitted
ci: compliance: setup west modules
Setup a complete workspace with west. Some checks need access to configured modules. Signed-off-by: Anas Nashif <[email protected]>
1 parent 364129d commit 0a98147

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/compliance.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ jobs:
77
runs-on: ubuntu-latest
88
name: Run compliance checks on patch series (PR)
99
steps:
10+
- name: Update PATH for west
11+
run: |
12+
echo "$HOME/.local/bin" >> $GITHUB_PATH
13+
1014
- name: Checkout the code
11-
uses: actions/checkout@v1
15+
uses: actions/checkout@v2
16+
with:
17+
ref: ${{ github.base_ref }}
1218

1319
- name: cache-pip
1420
uses: actions/cache@v1
@@ -23,15 +29,21 @@ jobs:
2329
pip3 install python-magic junitparser gitlint pylint pykwalify
2430
pip3 install west
2531
32+
- name: west setup
33+
run: |
34+
west init -l . || true
35+
west update
36+
2637
- name: Run Compliance Tests
2738
id: compliance
2839
env:
2940
BASE_REF: ${{ github.base_ref }}
3041
run: |
31-
export PATH=$PATH:~/.local/bin
3242
export ZEPHYR_BASE=$PWD
3343
git config --global user.email "[email protected]"
3444
git config --global user.name "Your Name"
45+
ls -la
46+
git remote -v
3547
git rebase origin/${BASE_REF}
3648
./scripts/ci/check_compliance.py -m Codeowners -m Devicetree -m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m Kconfig -c origin/${BASE_REF}.. || true
3749

0 commit comments

Comments
 (0)