cargo fmt/clippy #549
Workflow file for this run
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: ci | |
| on: [push] | |
| jobs: | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install zsh | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y zsh | |
| zsh --version | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: fmt | |
| args: --all -- --check | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: clippy | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: -- --nocapture --format pretty | |
| - name: Build examples | |
| run: | | |
| find examples \ | |
| -name Cargo.toml \ | |
| -exec cargo build \ | |
| --manifest-path {} \; | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: build | |
| args: --bins |