Files
pezkuwi-subxt/polkadot/.github/workflows/check-licenses.yml
T
Yuri Volkov e2964385b1 license-scanner update (#7473)
As Node@^16 reaches its end-of-life this October, we're upgrading to
Node@^18 everywhere
2023-07-07 13:29:48 +00:00

27 lines
652 B
YAML

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.7.0
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@paritytech'
- name: Check the licenses
run: |
shopt -s globstar
npx @paritytech/license-scanner@0.0.5 scan \
--ensure-licenses=Apache-2.0 \
--ensure-licenses=GPL-3.0-only \
./**/*.rs
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}