You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah this case with importing isn't covered by this GitHub Actions. I could certainly put in an hour or two sometime this week to implement this or if you'd like to contribute too.
Just for a little more information, the GitHub Actions is failing on foo.rego because it's importing utils.rego or is the test itself failing?
if I run opa test . ../utils.rego from the test dir I can make the test work locally.
Is there tests for utils.rego in foo_test.rego or does foo.rego tests foo_test.rego failing only because the import failing?
@eedgar quick follow up to make sure that we're closing the loop on this issue: Did @oycyc's questions / clarification of what is going on with your setup fix your issue? Or do you believe something needs to be done here?
I have a set of tests that utilize a common shared library rego file
eg
/policy/utils.rego
/policy/test/foo_test.rego
/policy/test/foo.rego. (this includes the contents of utils via an import)
the tests are failing because it cant find the utils package.
if I run opa test . ../utils.rego from the test dir I can make the test work locally.
The text was updated successfully, but these errors were encountered: