Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run regal and opa in CI #140

Closed
sbp-bvanb opened this issue Nov 25, 2024 · 0 comments · Fixed by #139
Closed

Run regal and opa in CI #140

sbp-bvanb opened this issue Nov 25, 2024 · 0 comments · Fixed by #139

Comments

@sbp-bvanb
Copy link
Collaborator


rego_dir=$(find . -type f -name '*.rego' -exec dirname {} \; | sort -u)


for dir in $rego_dir; do
    echo "Running opa test in directory: $dir"
    (cd "$dir" && opa test . -v)
done

opa test .

opa fmt . --write

regal lint .

sbp-bvanb added a commit that referenced this issue Dec 2, 2024
sbp-bvanb added a commit that referenced this issue Dec 2, 2024
…n those tools using Task (#139)

* feat: Install OPA v0.70.0

* feat: [#138] Install Regal v0.29.2

* feat: [#140] Run OPA and Regal in pipeline

* feat: [#140] Run OPA from GOBIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant