Skip to content

Commit

Permalink
chore: license checker (#38)
Browse files Browse the repository at this point in the history
* chore: license checker

* GHA

* license-engine.sh license-template-node.json licenses .gitignore

* Node license checker
  • Loading branch information
kevgo authored Nov 2, 2022
1 parent 2d016a7 commit 40d280e
Show file tree
Hide file tree
Showing 5 changed files with 378 additions and 7 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/licenses.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Licenses

on:
pull_request:
push:
branches:
- main
- master

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.18"
- uses: actions/setup-node@v2
with:
node-version: "18"
- run: make licenses
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
.bin/

# Editor directories and files
.vscode/*
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ install:

format: node_modules
npm exec -- prettier --write .


licenses: .bin/licenses node_modules # checks open-source licenses
.bin/licenses

.bin/licenses: Makefile
curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh

node_modules: package-lock.json
npm ci
touch node_modules
Loading

0 comments on commit 40d280e

Please sign in to comment.