Skip to content

Commit f24cca7

Browse files
authored
Ensure schema files are updated with the api (#33)
1 parent f91dd33 commit f24cca7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pyth-sdk-terra.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,27 @@ jobs:
2323
run: cargo build --verbose
2424
- name: Run tests
2525
run: cargo test --verbose
26+
lints:
27+
name: Lints
28+
runs-on: ubuntu-latest
29+
defaults:
30+
run:
31+
working-directory: ./pyth-sdk-terra
32+
steps:
33+
- name: Checkout sources
34+
uses: actions/checkout@v2
35+
36+
- name: Install stable toolchain
37+
uses: actions-rs/toolchain@v1
38+
with:
39+
profile: minimal
40+
toolchain: 1.58.1
41+
override: true
42+
components: clippy
43+
44+
- name: Generate Schema
45+
run: cargo run --example schema
46+
47+
- name: Schema Changes
48+
# fails if any changes not committed
49+
run: git diff --exit-code schema

0 commit comments

Comments
 (0)