From dd0ab7e347d9824cc067421e03c192cfc61fb96f Mon Sep 17 00:00:00 2001 From: Maria Ines Parnisari Date: Wed, 17 Dec 2025 12:08:39 -0800 Subject: [PATCH] ci: re-arrange workflows --- .github/workflows/integration-test.yaml | 19 +++++++++++++++++++ .github/workflows/test.yaml | 19 ++++++------------- 2 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/integration-test.yaml diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml new file mode 100644 index 0000000..23ef658 --- /dev/null +++ b/.github/workflows/integration-test.yaml @@ -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" diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1d6ff89..ddc0f2c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -2,21 +2,13 @@ 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" @@ -24,8 +16,9 @@ jobs: - 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 + 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..."