Skip to content

Commit 6968898

Browse files
authored
chore: license checker (#714)
1 parent 603ceb4 commit 6968898

File tree

4 files changed

+869
-0
lines changed

4 files changed

+869
-0
lines changed

.github/workflows/licenses.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Licenses
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
10+
jobs:
11+
check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: "1.18"
18+
- uses: actions/setup-node@v2
19+
with:
20+
node-version: "18"
21+
- run: make licenses

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ format: .bin/goimports node_modules # formats the source code
55
help:
66
@cat Makefile | grep '^[^ ]*:' | grep -v '^\.bin/' | grep -v '.SILENT:' | grep -v '^node_modules:' | grep -v help | sed 's/:.*#/#/' | column -s "#" -t
77

8+
licenses: .bin/licenses node_modules # checks open-source licenses
9+
.bin/licenses
10+
811
test: # runs all tests
912
go test ./...
1013

1114
.bin/goimports: Makefile
1215
GOBIN=$(shell pwd)/.bin go install golang.org/x/tools/cmd/goimports@latest
1316

17+
.bin/licenses: Makefile
18+
curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh
19+
1420
node_modules: package-lock.json
1521
npm ci
1622
touch node_modules

0 commit comments

Comments
 (0)