Skip to content

Commit

Permalink
chore: license checker (#3328)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Nov 2, 2022
1 parent 4fd6baa commit 80a1335
Show file tree
Hide file tree
Showing 4 changed files with 390 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/licenses.yml
@@ -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
6 changes: 6 additions & 0 deletions Makefile
Expand Up @@ -37,6 +37,9 @@ docs/cli: .bin/clidoc
.bin/goimports: go.sum Makefile
GOBIN=$(shell pwd)/.bin go install golang.org/x/tools/cmd/goimports@latest

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

.bin/ory: Makefile
bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) -d -b .bin ory v0.1.22
touch -a -m .bin/ory
Expand Down Expand Up @@ -192,3 +195,6 @@ post-release: .bin/yq

generate: .bin/mockgen
go generate ./...

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

0 comments on commit 80a1335

Please sign in to comment.