diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4942c7e..cda6ff4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,30 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Use Stable Cargo + uses: actions-rs/cargo@v1 + with: + profile: minimal + toolchain: stable + components: rustfmt, clippy - name: Check - run: cargo check --all-features + uses: actions-rs/cargo@v1 + with: + command: check + args: --all-features - name: Clippy - run: cargo clippy --all-features + uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features - name: Fmt - run: cargo fmt --check --quiet - - name: Build - run: cargo build --no-default-features --verbose + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --check --quiet - name: Run tests - run: cargo test --no-default-features --verbose + uses: actions-rs/cargo@v1 + with: + command: test + args: --no-default-features --verbose