This action can be used to test your authorization model using store test files.
Parameter | Description | Required | Default |
---|---|---|---|
test_path |
The path to your store test file or folder relative to the root of your project. | No | . |
test_files_pattern |
The pattern to match test files. | No | *.fga.yaml |
Note: the action will fail if no test is found in the specified test path with the given pattern
name: Test Action
on:
workflow_dispatch:
jobs:
test:
name: Run test
runs-on: ubuntu-latest
steps:
- uses: openfga/action-openfga-test@v0.1
name: Test Action
on:
workflow_dispatch:
jobs:
test:
name: Run test
runs-on: ubuntu-latest
steps:
- uses: openfga/action-openfga-test@v0.1.0
with:
test_path: example
name: Test Action
on:
workflow_dispatch:
jobs:
test:
name: Run test
runs-on: ubuntu-latest
steps:
- uses: openfga/action-openfga-test@v0.1
with:
test_path: example/model.fga.yaml