fix(patch)!: make style optional #140
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 | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| RUST_BACKTRACE: 1 | |
| CARGO_TERM_COLOR: always | |
| CLICOLOR: 1 | |
| CI: 1 | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust: [stable, beta, nightly, 1.70.0] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: rustup toolchain install ${{ matrix.rust }} --profile minimal | |
| - run: cargo +${{ matrix.rust }} check --all-targets --all-features | |
| - run: cargo +${{ matrix.rust }} test | |
| lint: | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTFLAGS: -D warnings | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: rustup toolchain install stable --profile minimal --component rustfmt,clippy | |
| - run: cargo fmt -- --check | |
| - run: cargo clippy --all-targets --all-features | |
| - run: cargo doc --no-deps --all-features | |
| semver: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check semver | |
| uses: obi1kenobi/cargo-semver-checks-action@v2 |