From 6aa5e6f441c7ab154ba63c0ba292d0d9b8f522bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=BBelazko?= Date: Wed, 18 Sep 2024 14:58:09 +0200 Subject: [PATCH] chore: update ci workflow file --- .github/workflows/rust.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c544e47..7cbb45c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,10 +2,6 @@ name: "CI" on: push: - branches: [ main ] - pull_request: - branches: [ main ] - env: CARGO_TERM_COLOR: always @@ -17,19 +13,23 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: cargo fmt -- --check - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - run: rustup component add clippy - - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + + - name: Set up Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + + - name: Check format + run: | + cargo fmt --all -- --check + + - name: Clippy + run: | + cargo lint + - name: Build run: cargo build --verbose + - name: Run tests (rust-crypto) run: cargo test --verbose --no-default-features --features rust-crypto + - name: Run tests (ring) run: cargo test --verbose