Skip to content

Put validate errors in prelude #102

Put validate errors in prelude

Put validate errors in prelude #102

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: "${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}"
- name: Build
run: cargo build --verbose
- name: Check formatting
run: cargo fmt --all --check
- name: Lint
run: cargo clippy --all-targets -- --deny warnings
- name: Run tests
run: cargo test --verbose
- name: Run examples
run: |
cargo run --example load_sample
cargo run --example validate_sample -- sample.ics