Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: "Test"
on: # yamllint disable-line rule:truthy
push:
paths: ["integration-testing/**"]
pull_request:
paths: ["integration-testing/**"]
permissions:
contents: "read"
jobs:
integration-testing:
name: "Run Integration Test Example"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v6"
- uses: "actions/setup-go@v6"
- uses: "authzed/actions/go-test@main"
with:
working_directory: "integration-testing"
19 changes: 6 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,23 @@
name: "Test"
on: # yamllint disable-line rule:truthy
push:
paths: ["integration-testing/**"]
branches:
- "main"
pull_request:
paths: ["integration-testing/**"]
branches: ["*"]
permissions:
contents: "read"
jobs:
integration-testing:
name: "Run Integration Test Example"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v6"
- uses: "actions/setup-go@v6"
- uses: "authzed/actions/go-test@main"
with:
working_directory: "integration-testing"
validate-example-schemas:
name: "Validate Example Schemas"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v6"
- name: "Install zed and run validate"
run: |
curl -L https://github.com/authzed/zed/releases/latest/download/zed-linux-amd64 -o zed
chmod +x zed
# TODO can we download the latest?
curl -L https://github.com/authzed/zed/releases/download/v0.33.1/zed_0.33.1_linux_amd64.deb -o zed.deb
Copy link
Contributor Author

@miparnisari miparnisari Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shucks that https://github.com/authzed/action-spicedb-validate can't run for more than one file. Opened authzed/action-spicedb-validate#6

sudo dpkg -i zed.deb
for schema_file in $(find schemas -name "schema-and-data.yaml" -type f); do
schema_dir=$(dirname "$schema_file")
echo "Validating $schema_file..."
Expand Down