Skip to content

Make cairo-lint-dev as a xtask (#166) #697

Make cairo-lint-dev as a xtask (#166)

Make cairo-lint-dev as a xtask (#166) #697

Workflow file for this run

on: [push, pull_request]
name: Test
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get corelib
run: git clone https://github.com/starkware-libs/cairo
- name: Install toolchain
run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Run cargo clippy
run: cargo clippy -- -D warnings
- name: Run cargo test
run: CORELIB_PATH="$(pwd)/cairo/corelib/src" cargo test
- name: Run cargo fmt
run: rustup toolchain install nightly && rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt && cargo +nightly fmt -- --check