Vinyeh's picture
Add pinned source: gatekeeper-library (part 7)
df0899b verified
Raw History Blame Contribute Delete
473 Bytes
#!/bin/bash
set -eu
# Ensure OPA strict mode compliance
# https://www.openpolicyagent.org/docs/latest/policy-language/#strict-mode
opa check --strict src
for folder in src/*/*
do
# TODO: enforce coverage
# needs https://github.com/open-policy-agent/opa/issues/2562 to see what was not covered
# needs https://github.com/open-policy-agent/opa/issues/2139 to see verbose output when using coverage
echo "opa test ${folder}/*.rego"
opa test ${folder}/*.rego
done