This project is a GitHub Action that runs the zed validate command for a SpiceDB schema and test data.
A compatible file can be produced by downloading from the Authzed Playground.
Add the following to any workflow:
steps:
- uses: "actions/checkout@v4"
- uses: "authzed/action-spicedb-validate@v1"
with:
validationfile: "myschema.zaml"Note: The
actions/checkoutstep is required before running this action. Without it, your repository files won't be available and validation will fail with "no such file or directory".
The validationfile path should be relative to the repository root.
See test-schema.zaml for an example of an input file.