-
Notifications
You must be signed in to change notification settings - Fork 52
43 lines (38 loc) · 945 Bytes
/
pyth-sdk.yml
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
name: Pyth SDK
on:
push:
branches: [ main ]
paths: [ pyth-sdk/** ]
pull_request:
branches: [ main ]
paths: [ pyth-sdk/** ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./pyth-sdk
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install libudev-dev
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
schema-check:
name: Check schema changes are committed
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./pyth-sdk
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Generate Schema
run: cargo run --example schema
- name: Schema Changes
# fails if any changes not committed
run: git diff --exit-code schema