Skip to content

Commit

Permalink
chore: license checker (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo authored Nov 2, 2022
1 parent a2fba7e commit ea86906
Show file tree
Hide file tree
Showing 4 changed files with 594 additions and 1 deletion.
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
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ format: .bin/shfmt node_modules # formats the source code
help: # shows all available Make commands
cat Makefile | grep '^[^ ]*:' | grep -v '^\.bin/' | grep -v '^node_modules' | grep -v '.SILENT:' | grep -v help | sed 's/:.*#/#/' | column -s "#" -t

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

test: .bin/shellcheck .bin/shfmt node_modules # runs all linters
echo running tests ...
find . -name '*.sh' | xargs .bin/shellcheck
Expand All @@ -27,7 +33,7 @@ test: .bin/shellcheck .bin/shfmt node_modules # runs all linters
chmod +x .bin/shfmt

node_modules: package.json package-lock.json
echo installing Prettier ...
echo installing Node dependencies ...
npm ci
touch node_modules # update timestamp so that Make doesn't reinstall it over and over

Expand Down
Loading

0 comments on commit ea86906

Please sign in to comment.