feat(clap): use clap derive for commands #337
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: leetcode-cli | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macOS-latest, ubuntu-latest] | |
| steps: | |
| - name: Checkout the source code | |
| uses: actions/checkout@v6 | |
| - name: Install Toolchain | |
| run: rustup update stable && rustup default stable | |
| - uses: actions/setup-sqlite@v1 | |
| - name: Run tests | |
| run: cargo nextest run --release --all-features | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the source code | |
| uses: actions/checkout@v6 | |
| - name: Install Toolchain | |
| run: rustup update stable && rustup default stable | |
| - uses: actions/setup-sqlite@v1 | |
| - name: Run format check | |
| run: cargo fmt --check | |
| - name: Run clippy | |
| run: cargo clippy --all-features -- -D warnings |