bb1fc9bb6a
* ci: add CARGO_TERM_COLOR=always * ci: revert dedup check since it doesn't always work
35 lines
675 B
YAML
35 lines
675 B
YAML
name: ci-contracts-schema
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- 'contracts/**'
|
|
- 'common/**'
|
|
pull_request:
|
|
paths:
|
|
- 'contracts/**'
|
|
- 'common/**'
|
|
|
|
jobs:
|
|
check-schema:
|
|
name: Generate and check schema
|
|
runs-on: custom-runner-linux
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
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
|