Skip to content

Commit

Permalink
ci: run cargo test & cargo clippy in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
denbite committed Sep 26, 2024
1 parent 71cdda3 commit 036a7f2
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
name: Pull Request Test
name: Pull Request Checks

on:
pull_request:

jobs:
checks:
tests:
runs-on: ubuntu-latest
name: Check Formatting & Tests
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check Formatting
run: cargo fmt --check

- name: Run cargo clippy
run: |
rustup component add clippy
cargo clippy --all-features --workspace --tests -- --warn clippy::all --warn clippy::nursery
- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.6.4/cargo-near-installer.sh | sh

Expand All @@ -26,3 +22,15 @@ jobs:

- name: Run cargo test
run: cargo test

clippy:
runs-on: ubuntu-latest
name: Runs Cargo Clippy
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run cargo clippy
run: |
rustup component add clippy
cargo clippy --all-features --workspace --tests -- --warn clippy::all --warn clippy::nursery

0 comments on commit 036a7f2

Please sign in to comment.