Skip to content

Commit

Permalink
chore: update ci workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
pik694 committed Sep 18, 2024
1 parent 29256ae commit 6aa5e6f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: "CI"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
CARGO_TERM_COLOR: always

Expand All @@ -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

0 comments on commit 6aa5e6f

Please sign in to comment.