Add logging #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
mantle/target/ | |
key: ${{ runner.os }}-ci-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Build | |
working-directory: mantle | |
run: cargo build --locked --verbose | |
- name: Run linters | |
working-directory: mantle | |
run: | | |
rustup show | |
cargo version | |
cargo clippy -V | |
cargo fmt -- --check | |
cargo clippy -- -D warnings | |
- name: Generate schema | |
working-directory: mantle | |
run: cargo run --bin gen_schema |