Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ docs/cli: .bin/clidoc
.bin/golangci-lint: Makefile
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b .bin v1.48.0

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

.PHONY: lint
lint: .bin/golangci-lint
.bin/golangci-lint run --timeout=10m ./...
Expand All @@ -53,6 +56,9 @@ format: .bin/goimports node_modules
goimports -w -local github.com/ory .
npm exec -- prettier --write "{**/,}*{.js,.md,.ts}"

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

# Runs tests in short mode, without database adapters
.PHONY: docker
docker:
Expand Down
Loading