mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
Add a CI check ensuring the code has license headers (#6609)
* Introduce a job scanning and ensuring there are licenses * Showcase a red test * Add missing licenses * Cleanup * Extend the check * Add missing licenses * CI trigger
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
name: Check licenses
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
check-licenses:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v3.3.0
|
||||
- uses: actions/setup-node@v3.6.0
|
||||
with:
|
||||
node-version: '16.19.0'
|
||||
registry-url: 'https://npm.pkg.github.com'
|
||||
scope: '@paritytech'
|
||||
- name: Check the licenses
|
||||
run: |
|
||||
shopt -s globstar
|
||||
|
||||
npx @paritytech/license-scanner@0.0.3 scan \
|
||||
--ensure-licenses Apache-2.0 \
|
||||
--ensure-licenses GPL-3.0-only \
|
||||
./**/*.rs
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user