-
Notifications
You must be signed in to change notification settings - Fork 10
72 lines (62 loc) · 1.84 KB
/
Copy pathschema-drift.yml
File metadata and controls
72 lines (62 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Schema Drift Check
on:
schedule:
- cron: "0 6 * * 1" # Weekly on Monday at 06:00 UTC
workflow_dispatch:
pull_request:
paths:
- "src/mina_sdk/schema/**"
jobs:
schema-drift:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- branch: master
image_tag: master-latest-lightnet
strict: true
- branch: compatible
image_tag: compatible-latest-lightnet
strict: false
- branch: develop
image_tag: develop-latest-lightnet
strict: false
name: "Drift check: ${{ matrix.branch }}"
services:
mina:
image: o1labs/mina-local-network:${{ matrix.image_tag }}
env:
NETWORK_TYPE: single-node
PROOF_LEVEL: none
LOG_LEVEL: Info
RUN_ARCHIVE_NODE: false
ports:
- 8080:8080
- 3085:3085
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install httpx
- name: Wait for Mina network
uses: o1-labs/wait-for-mina-network-action@v1
with:
mina-graphql-port: "8080"
max-attempts: "60"
polling-interval-ms: "10000"
- name: Check schema drift
id: drift
run: |
python scripts/check_schema_drift.py \
--endpoint http://127.0.0.1:8080/graphql \
--branch ${{ matrix.branch }} \
${{ matrix.strict && '--strict' || '' }}
- name: Annotate warnings for non-strict branches
if: ${{ !matrix.strict && failure() }}
run: |
echo "::warning::Schema drift detected against ${{ matrix.branch }} branch (non-blocking)"