|
117 | 117 | },
|
118 | 118 | "scripts": {
|
119 | 119 | "install-deps": "bin/install-deps.sh",
|
120 |
| - "app-versions:csv": "echo 'name,appVersion,chartVersion'; for f in $(find charts -name Chart.yaml -type f -maxdepth 2| sort); do yq eval -o=json $f | jq -rc '. | [.name, .appVersion, .version] | @csv' | tr -d '\"'; done", |
| 120 | + "app-versions:csv": "echo 'name,appVersion,chartVersion'; for f in $(find charts -name Chart.yaml -type f -maxdepth 2| sort); do yq e -o=json -I=0 $f | jq -rc '. | [.name, .appVersion, .version] | @csv' | tr -d '\"'; done", |
121 | 121 | "adr": "adr-log -d adr -i",
|
122 |
| - "check-policies": "NODE_ENV=test binzx/otomi check-policies", |
| 122 | + "check-policies": "ENV_DIR=$PWD/tests/fixtures NODE_ENV=test binzx/otomi check-policies", |
123 | 123 | "clean": "rm -rf dist >/dev/null",
|
124 | 124 | "compile": "npm run clean && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json -v --dir dist && chmod +x ./dist/src/otomi.js",
|
125 | 125 | "compile:watch": "npm run compile && tsc -w",
|
|
134 | 134 | "lint": "run-p spellcheck lint:hf lint:ts lint:types",
|
135 | 135 | "lint-staged": "lint-staged",
|
136 | 136 | "lint:fix": "prettier --write tests/**/*.yaml --write '.values/env/**/*.yaml' && npm run lint:ts:fix",
|
137 |
| - "lint:hf": "NODE_ENV=test binzx/otomi lint", |
| 137 | + "lint:hf": "ENV_DIR=$PWD/tests/fixtures NODE_ENV=test binzx/otomi lint", |
138 | 138 | "lint:ts": "eslint --ext ts src",
|
139 | 139 | "lint:ts:fix": "eslint --fix --ext ts src",
|
140 | 140 | "lint:types": "tsc --noEmit",
|
|
150 | 150 | "tasks:copy-certs": "binzx/otomi task -n copyCerts",
|
151 | 151 | "test": "run-s test:ts lint validate-values validate-templates check-policies",
|
152 | 152 | "test:opa": "NODE_ENV=test binzx/otomi x opa test policies -v",
|
153 |
| - "test:ts": "NODE_ENV=test jest", |
| 153 | + "test:ts": "ENV_DIR=$PWD/tests/fixtures NODE_ENV=test jest", |
154 | 154 | "test:ts-cov": "jest --coverage",
|
155 |
| - "validate-templates": "NODE_ENV=test binzx/otomi validate-templates", |
| 155 | + "validate-templates": "ENV_DIR=$PWD/tests/fixtures NODE_ENV=test binzx/otomi validate-templates", |
156 | 156 | "validate-templates:all": "set -e; i=25; while [ $i -le 28 ]; do NODE_ENV=test binzx/otomi validate-templates -k 1.$i; i=$(($i+1)); done",
|
157 |
| - "validate-values": "NODE_ENV=test binzx/otomi validate-values", |
| 157 | + "validate-values": "ENV_DIR=$PWD/tests/fixtures NODE_ENV=test binzx/otomi validate-values", |
158 | 158 | "bootstrap-dev": "rm -rf /tmp/otomi-bootstrap-dev; CI=1 VALUES_INPUT=$PWD/tests/bootstrap/input.yaml ENV_DIR=/tmp/otomi-bootstrap-dev binzx/otomi bootstrap",
|
159 | 159 | "bootstrap-dev-with-repo": "CI=1 ENV_DIR=/tmp/otomi-bootstrap-dev binzx/otomi bootstrap"
|
160 | 160 | },
|
|
0 commit comments