This repository was archived by the owner on Oct 31, 2021. It is now read-only.
File tree 4 files changed +31
-7
lines changed
4 files changed +31
-7
lines changed Original file line number Diff line number Diff line change 30
30
--health-retries 5
31
31
steps :
32
32
- uses : actions/checkout@v2
33
- - name : Dependencies
34
- run : make dependencies
35
- - name : Build
36
- run : make build
33
+ - name : Depdendencies, Build, Licenses
34
+ run : make license
37
35
- name : Setup Schema
38
36
run : make apply-schema-ci
39
37
- name : Test
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ ifndef POSTGRES_HOST
21
21
POSTGRES_HOST =localhost
22
22
endif
23
23
24
- default : dependencies build test
24
+ default : build test
25
25
26
- dependencies :
26
+ dependencies : go.mod go.sum
27
27
go get ./...
28
28
29
- build :
29
+ build : dependencies $( wildcard $( PWD ) /pkg/ ** / * .go)
30
30
go build -o $(LOCAL_BIN_DIR ) /monetr $(MONETR_CLI_PACKAGE )
31
31
32
32
test :
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ JQ=$(LOCAL_BIN)/jq
13
13
KUBECTL=minikube kubectl --
14
14
SPLIT_YAML=kubernetes-split-yaml
15
15
YQ=$(LOCAL_BIN)/yq
16
+ LICENSE=$(LOCAL_BIN)/golicense
16
17
VAULT=vault
17
18
MKCERT=mkcert
18
19
PGO=$(LOCAL_BIN)/pgo
@@ -267,6 +268,18 @@ install-$(YQ): $(LOCAL_BIN) $(LOCAL_TMP)
267
268
mv $(YQ_DIR)/yq_$(OS)_$(ARCH) $(YQ)
268
269
rm -rf $(YQ_DIR) || true
269
270
271
+ $(LICENSE):
272
+ @if [ ! -f "$(LICENSE)" ]; then make install-$(LICENSE); fi
273
+
274
+ LICENSE_REPO=https://github.com/mitchellh/golicense.git
275
+ LICENSE_TMP=$(LOCAL_TMP)/golicense
276
+ install-$(LICENSE): $(LOCAL_BIN) $(LOCAL_TMP)
277
+ $(call infoMsg,Installing golicense to $(LICENSE))
278
+ rm -rf $(LICENSE_TMP) || true
279
+ git clone $(LICENSE_REPO) $(LICENSE_TMP)
280
+ cd $(LICENSE_TMP) && go build -o $(LICENSE) .
281
+ rm -rf $(LICENSE_TMP) || true
282
+
270
283
271
284
MKCERT_REPO=https://github.com/FiloSottile/mkcert
272
285
MKCERT_DIR=$(LOCAL_TMP)/$(MKCERT)
@@ -542,4 +555,8 @@ mail-mini: $(VALUES) $(YQ)
542
555
@echo "mailhog is now accessible at: https://mail.$(LOCAL_DOMAIN)"
543
556
@echo "\033[0;31m#################################################################################\033[0m"
544
557
558
+ license: $(LICENSE) build
559
+ - $(LICENSE) $(PWD)/licenses.hcl $(LOCAL_BIN)/monetr
560
+
561
+
545
562
Original file line number Diff line number Diff line change
1
+ allow = [
2
+ " Apache-2.0" ,
3
+ " BSD-2-Clause" ,
4
+ " BSD-3-Clause" ,
5
+ " MIT" ,
6
+ " MPL-2.0" ,
7
+ " Unlicense" ,
8
+ ]
9
+ deny = []
You can’t perform that action at this time.
0 commit comments