return exit code 0 when no args are provided #90
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: pull request to main | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| name: build | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| - macos-latest | |
| toolchain: | |
| - stable | |
| - nightly | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| components: rustfmt, clippy | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Test | |
| run: cargo test --verbose | |
| - name: Build (Release) | |
| run: cargo build --release --verbose | |
| - name: Test (Release) | |
| run: cargo test --release --verbose | |
| - name: Check formatting | |
| if: matrix.toolchain == 'stable' | |
| run: cargo fmt --check | |
| - name: Clippy | |
| if: matrix.toolchain == 'stable' | |
| run: cargo clippy |