ad81c6d27e
* Move all workflows on ubuntu-20 to ubuntu-22 * Add missing -y for installing rsync in ci-docs * Install rsync with --yes * Switch two jobs to github hosted free tier runners
31 lines
658 B
YAML
31 lines
658 B
YAML
name: ci-contracts-schema
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- 'contracts/**'
|
|
- 'common/**'
|
|
- '.github/workflows/ci-contracts-schema.yml'
|
|
|
|
jobs:
|
|
check-schema:
|
|
name: Generate and check schema
|
|
runs-on: ubuntu-22.04
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- 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
|