d0ba4056d6
* additional logs in abci queries * added serde aliases for deserialization of contract types using their old format * installing rust toolchain during the schema CI * making the workflow be executed on our custom runner * checking for diff only in the schema directory
32 lines
616 B
YAML
32 lines
616 B
YAML
name: Check Contract Schema
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'contracts/**'
|
|
- 'common/**'
|
|
pull_request:
|
|
paths:
|
|
- 'contracts/**'
|
|
- 'common/**'
|
|
|
|
jobs:
|
|
check-schema:
|
|
name: Generate and check schema
|
|
runs-on: custom-runner-linux
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Rust toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
|
|
- name: Generate the schema
|
|
run: make contract-schema
|
|
|
|
- name: Check for diff
|
|
run: git diff --exit-code -- contracts/*/schema
|