🔊 better logging of JSON errors #370
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Make sure dependencies use compatible licenses. | |
# | |
name: License Check | |
on: | |
- pull_request | |
jobs: | |
license-check: | |
name: Check licenses | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- name: Install Node.js dependencies | |
run: npm ci | |
- name: Install NPM License Checker | |
run: npm install -g license-checker | |
- name: Check licences, no GPL or APGL allowed | |
run: license-checker | grep -P -B1 '(?<=[A\W])GPL' && exit 1 || exit 0 |