fix: modified to inherit end opt flag after parsing until sub command… #149
This file contains 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: Rust CI | |
on: | |
push: | |
branches: [ '*', '*/*' ] | |
jobs: | |
test: | |
name: Test for Rust ${{ matrix.rustver }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
rustver: ['1.74.1', stable] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rustver }} | |
- run: cargo test -- --show-output | |
cover: | |
name: Coverage for Rust ${{ matrix.rustver }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
rustver: [stable] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rustver }} | |
components: llvm-tools-preview | |
- run: cargo install cargo-llvm-cov | |
- run: cargo llvm-cov |