fix: Fix clippy lints #302
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: Check and Test | |
on: | |
push: | |
branches: ["**"] | |
tags-ignore: ["**"] | |
paths-ignore: | |
- "**.md" | |
- LICENSE | |
- .github/FUNDING.yml | |
- .gitignore | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
- "**/LICENSE" | |
- .github/FUNDING.yml | |
- .editorconfig | |
- .gitignore | |
jobs: | |
build: | |
name: ${{ matrix.target.name }} (${{ matrix.rust }}) | |
runs-on: ${{ matrix.target.os }} | |
strategy: | |
matrix: | |
rust: [1.77.0, stable, nightly] | |
target: | |
- name: Linux | |
os: ubuntu-latest | |
- name: macOS | |
os: macos-latest | |
# - name: Windows | |
# os: windows-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Cache cargo output | |
uses: Swatinem/rust-cache@v2 | |
- name: Check | |
run: cargo check --features=amalgation | |
- name: Check no_std | |
run: cargo check --no-default-features --features=amalgation | |
- name: Check and Run tests | |
run: cargo test --features amalgation |