Skip to content

Commit a01c3a4

Browse files
committed
[nrf noup] ci: NCS-specific CI tweaks
squash! [nrf noup] ci: NCS-specific CI tweaks - Add a Jenkinsfile - compliance.yml: Disable check for merge commits, since we have upmerges downstream. Also, since in the code we refer to Kconfig symbols that are defined in the sdk-nrf repository, the Kconfig checks (Kconfig, KconfigBasic and KconfigBasicNoModules) will not pass so exclude them. - Extend the max commit line lengths for Gitlint to account for sauce tags - Add a commit-tags workflow: This enables sauce tag checking in sdk-zephyr Signed-off-by: Carles Cufi <[email protected]>
1 parent 24edc9d commit a01c3a4

File tree

3 files changed

+31
-63
lines changed

3 files changed

+31
-63
lines changed

.github/workflows/commit-tags.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Commit tags
2+
3+
on: pull_request
4+
5+
jobs:
6+
commit_tags:
7+
runs-on: ubuntu-22.04
8+
name: Run commit tags checks on patch series (PR)
9+
steps:
10+
- name: Update PATH for west
11+
run: |
12+
echo "$HOME/.local/bin" >> $GITHUB_PATH
13+
14+
- name: Checkout the code
15+
uses: actions/checkout@v3
16+
with:
17+
ref: ${{ github.event.pull_request.head.sha }}
18+
fetch-depth: 0
19+
20+
- name: Install python dependencies
21+
run: |
22+
pip3 install setuptools
23+
pip3 install wheel
24+
pip3 install gitlint
25+
26+
- name: Run the commit tags
27+
uses: nrfconnect/action-commit-tags@main
28+
with:
29+
target: '.'
30+
baserev: origin/${{ github.base_ref }}
31+
revrange: 'none'

.github/workflows/compliance.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ jobs:
4040
# Ensure there's no merge commits in the PR
4141
#[[ "$(git rev-list --merges --count origin/${BASE_REF}..)" == "0" ]] || \
4242
#(echo "::error ::Merge commits not allowed, rebase instead";false)
43-
# Sauce tag checks before rebasing
44-
git rev-list --first-parent origin/${BASE_REF}..HEAD | tr '\n' ',' | \
45-
xargs gitlint -c ncs-sauce-tags.enable=true \
46-
-c title-starts-with-subsystem.regex=".*" --commits
4743
git rebase origin/${BASE_REF}
4844
# debug
4945
git log --pretty=oneline | head -n 10

scripts/gitlint/ncs.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)