-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
openFGA CLI released v 0.7.7 yesterday, which included [this change](openfga/cli#349. It changes the behaviour of the --tests parameter to work relative to the test file location, rather than to always start from the project root folder.
This change causes this github action to break - the test_path parameter is defined as The path to your store test file or folder relative to the root of your project., which is now wrong.
the issue seems to be with using the output of the find command here to feed the --tests CLI command here.
but now the behaviour of --tests has changed..
example output from a failed run of the action -
Running FGA test file my_project/infrastructure/fga/tests.fga.yaml
Error: failed to read test file my_project/infrastructure/fga/tests.fga.yaml: failed to read file "my_project/infrastructure/fga/tests.fga.yaml" (resolved path: "my_project/infrastructure/fga/my_project/infrastructure/fga/tests.fga.yaml"): open my_project/infrastructure/fga/my_project/infrastructure/fga/tests.fga.yaml: no such file or directory
the same error occurs whether I configure test_path as ., or as my_project/infrastructure/fga
jhackettns1, Angelchev and guillempuche
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done