feat: set up communication (#6) #23
This file contains hidden or 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: lint | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "based/**" | |
| pull_request: | |
| paths: | |
| - "based/**" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: based | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| workspaces: based -> target | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly-2024-10-01 | |
| components: clippy, rustfmt | |
| - name: Setup just | |
| uses: extractions/setup-just@v2 | |
| with: | |
| just-version: 1.5.0 | |
| - name: Check formatting | |
| run: just fmt-check | |
| - name: Run clippy | |
| run: just clippy |