Skip to content

Commit 58fe5d7

Browse files
authored
ci: re-arrange workflows (#41)
1 parent 3492ed3 commit 58fe5d7

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: "Test"
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
paths: ["integration-testing/**"]
6+
pull_request:
7+
paths: ["integration-testing/**"]
8+
permissions:
9+
contents: "read"
10+
jobs:
11+
integration-testing:
12+
name: "Run Integration Test Example"
13+
runs-on: "ubuntu-latest"
14+
steps:
15+
- uses: "actions/checkout@v6"
16+
- uses: "actions/setup-go@v6"
17+
- uses: "authzed/actions/go-test@main"
18+
with:
19+
working_directory: "integration-testing"

.github/workflows/test.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,23 @@
22
name: "Test"
33
on: # yamllint disable-line rule:truthy
44
push:
5-
paths: ["integration-testing/**"]
5+
branches:
6+
- "main"
67
pull_request:
7-
paths: ["integration-testing/**"]
8+
branches: ["*"]
89
permissions:
910
contents: "read"
1011
jobs:
11-
integration-testing:
12-
name: "Run Integration Test Example"
13-
runs-on: "ubuntu-latest"
14-
steps:
15-
- uses: "actions/checkout@v6"
16-
- uses: "actions/setup-go@v6"
17-
- uses: "authzed/actions/go-test@main"
18-
with:
19-
working_directory: "integration-testing"
2012
validate-example-schemas:
2113
name: "Validate Example Schemas"
2214
runs-on: "ubuntu-latest"
2315
steps:
2416
- uses: "actions/checkout@v6"
2517
- name: "Install zed and run validate"
2618
run: |
27-
curl -L https://github.com/authzed/zed/releases/latest/download/zed-linux-amd64 -o zed
28-
chmod +x zed
19+
# TODO can we download the latest?
20+
curl -L https://github.com/authzed/zed/releases/download/v0.33.1/zed_0.33.1_linux_amd64.deb -o zed.deb
21+
sudo dpkg -i zed.deb
2922
for schema_file in $(find schemas -name "schema-and-data.yaml" -type f); do
3023
schema_dir=$(dirname "$schema_file")
3124
echo "Validating $schema_file..."

0 commit comments

Comments
 (0)