name: ci
on:
push:
branches: [main]
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --check
- run: cargo build --verbose
- run: cargo test --verbose
- name: schema drift check
if: matrix.os == 'ubuntu-latest'
run: |
cargo run --quiet -- schema > /tmp/schema.json
diff arig.schema.json /tmp/schema.json