Skip to content

Commit 43ffa55

Browse files
committed
add github workflow to test the scancodeio-extra-packages
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 8b3c41b commit 43ffa55

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
workflow_dispatch:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
verify-extra-packages:
10+
runs-on: ubuntu-24.04
11+
permissions:
12+
contents: read
13+
14+
name: Verify scancodeio-extra-packages exposes extra pipelines
15+
steps:
16+
- name: Build image with minecode-pipelines installed
17+
shell: bash
18+
run: |
19+
# ghcr.io/aboutcode-org/scancode.io v38.0.0 (core)
20+
docker build -t scancode-extra-packages-test - <<EOF
21+
FROM ghcr.io/aboutcode-org/scancode.io@sha256:e20d2b6e42eb4e192265ccd4b583e37a774240288bae6aa0dc6384d088e1a581
22+
RUN pip install --no-cache-dir minecode-pipelines
23+
EOF
24+
25+
- name: Verify mine_pypi pipeline is listed
26+
shell: bash
27+
run: |
28+
docker run --rm scancode-extra-packages-test scanpipe list-pipeline | tee pipelines.txt
29+
if ! grep -q "mine_pypi" pipelines.txt; then
30+
echo "::error::mine_pypi pipeline not found after installing minecode-pipelines"
31+
exit 1
32+
fi

0 commit comments

Comments
 (0)