-
-
Notifications
You must be signed in to change notification settings - Fork 266
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 721 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
format: .bin/ory node_modules # formats the source code
.bin/ory dev headers copyright --type=open-source
gofmt -l -s -w .
npm exec -- prettier --write .
lint: # runs golangci-lint
@echo "Linting..."
golangci-lint run --config=.golangci.yml ./...
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
.bin/ory: Makefile
curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.3.2
touch .bin/ory
node_modules: package-lock.json
npm install
touch node_modules
test:
go vet ./...
go test -covermode=atomic -coverprofile="coverage.out" .