Skip to content

Commit 300e07c

Browse files
committed
📦👷 Add license compliance checks and file generation to CI
1 parent 257a87d commit 300e07c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

‎project_name/.github/workflows/ci.yml.jinja‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,35 @@ jobs:
196196
[ $((result & 16)) -ne 0 ] && echo "::warning ::Pylest convention(s) found"
197197
[ $((result & 32)) -ne 0 ] && echo "::error ::Pylest usage error"
198198
exit $((result & 35))
199+
200+
check-licenses:
201+
runs-on: ubuntu-latest
202+
steps:
203+
- name: Checkout code
204+
uses: actions/checkout@v3
205+
206+
- name: Install Rust
207+
uses: actions-rs/toolchain@v1
208+
with:
209+
profile: minimal
210+
toolchain: stable
211+
override: true
212+
213+
- name: Install Feluda
214+
run: cargo install feluda
215+
216+
- name: Check licenses
217+
run: feluda --ci-format github --fail-on-restrictive --fail-on-incompatible
218+
219+
- name: Generate compliance files
220+
run: |
221+
echo "1" | feluda generate # Auto-select NOTICE file
222+
echo "2" | feluda generate # Auto-select THIRD_PARTY_LICENSES file
223+
224+
- name: Upload compliance artifacts
225+
uses: actions/upload-artifact@v3
226+
with:
227+
name: license-compliance
228+
path: |
229+
NOTICE
230+
THIRD_PARTY_LICENSES.md

0 commit comments

Comments
 (0)