fix: attribute iter ci #164
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |