Skip to content

Commit afd7e51

Browse files
nicu1989thst-nordic
authored andcommitted
ci: Add extended west ncs-sbom smoke test
Run west ncs-sbom command for supported OS: windows-latest ubuntu-24.04 on dummy file and verify scancode version. Signed-off-by: Nicolae Dicu <[email protected]>
1 parent f6bd484 commit afd7e51

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/west-commands.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,24 @@ jobs:
6060
- name: Install requirements
6161
shell: bash
6262
run: |
63-
pip3 install -r nrf/scripts/requirements-west-ncs-sbom.txt
64-
pip3 install -r nrf/scripts/requirements-extra.txt
63+
pip3 install -r nrf/scripts/requirements-fixed.txt
6564
- name: Smoke test ncs-loot & ncs-compare
6665
shell: bash
6766
run: |
6867
west ncs-loot -h
6968
west ncs-compare -h
69+
- name: Smoke test ncs-sbom
70+
# macOS is not supported by scancode-toolkit(used in ncs-sbom)
71+
if: ${{ matrix.os == 'ubuntu-24.04' || matrix.os == 'windows-latest' }}
72+
shell: bash
73+
run: |
74+
west ncs-sbom -h
75+
76+
# create a dummy file
77+
echo "/* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */" > test_file.c
78+
scancode --version
79+
# run ncs-sbom with scancode-toolkit
80+
west ncs-sbom \
81+
--input-files test_file.c \
82+
--license-detectors scancode-toolkit \
83+
--output-html scancode_report.html

0 commit comments

Comments
 (0)