-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 1.24 KB
/
Makefile
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: build install install-tools install-plugin lint fmt test test-all
HELM=$(shell which helm3 || which helm)
build:
bin/deno --unstable bundle src/index.ts bin/bundle.js
install: install-tools install-plugin
install-tools:
@ yarn --frozen-lockfile
install-plugin:
@ HELM_PLUGIN_DIR="$$PWD" ./scripts/install.sh "v$${DENO_VERSION:-1.38.3}"
lint:
@ yarn prettier --check .
@ yarn eslint .
fmt:
@ yarn prettier --write .
@ yarn eslint --fix .
# Run fast and independant tests
test:
@ $(shell $(HELM) env) bin/deno test --unstable --allow-run --allow-read --allow-write --allow-env --allow-net src/ e2e-tests/
# Run all tests
#
# Require
# - https://github.com/jkroepke/helm-secrets
# - https://github.com/mozilla/sops
# - https://github.com/FiloSottile/age
# - https://github.com/jkroepke/helm-secrets
# - Docker
# - Kubernetes cluster with access to read services in default namespace
test-all:
@ $(shell $(HELM) env) RUN_ALL_TESTS=true bin/deno test --unstable --allow-run --allow-read --allow-write --allow-env --allow-net src/ e2e-tests/
update-deps:
deno run -A https://deno.land/x/udd@0.8.1/main.ts src/*.ts
deno run -A https://deno.land/x/udd@0.8.1/main.ts src/**/*.ts
deno run -A https://deno.land/x/udd@0.8.1/main.ts e2e-tests/**/*.ts