From 2cc2ef8d381f77e84c5e631fb024597dd07f0a37 Mon Sep 17 00:00:00 2001 From: Helio Frota <00hf11@gmail.com> Date: Wed, 11 Dec 2024 20:53:39 -0300 Subject: [PATCH] tests... --- .github/workflows/ci.yaml | 24 +++++++----------------- rust-toolchain.toml | 2 +- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 98248dd..78d5722 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,27 +1,17 @@ name: ci -on: - push: - branches: - - main - pull_request: - branches: - - main +on: [push, pull_request] jobs: - ci: + name: Test `cargo fmt/check/clippy/test` on ubuntu-latest runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: Swatinem/rust-cache@v2 - - name: Format - run: cargo fmt --check - - name: Check - run: cargo check - - name: Clippy - run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used - - uses: taiki-e/install-action@cargo-llvm-cov + - run: rustup toolchain install stable --profile minimal --no-self-update - run: | - cargo llvm-cov test + cargo fmt --check + cargo check + cargo test + cargo clippy --all-targets --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e8d3cdd..80afd2d 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.80.1" +channel = "1.83.0" components = ["rustfmt", "clippy"]