Parallelize Rust static analysis and unit test jobs (#2293)

This commit is contained in:
Jamil
2023-10-10 09:04:04 -07:00
committed by GitHub
parent f4859c050b
commit dbb4a4c5a0

View File

@@ -7,6 +7,24 @@ defaults:
working-directory: ./rust
jobs:
static-analysis:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update toolchain
run: rustup show
- uses: Swatinem/rust-cache@v2
with:
workspaces: ./rust
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: cargo fmt -- --check
- run: |
cargo doc --all-features --no-deps --document-private-items ${{ matrix.packages }}
env:
RUSTDOCFLAGS: "-D warnings"
- run: |
cargo clippy --all-targets --all-features ${{ matrix.packages }} -- -D warnings
test:
strategy:
fail-fast: false
@@ -34,13 +52,6 @@ jobs:
with:
workspaces: ./rust
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: cargo fmt -- --check
- run: |
cargo doc --all-features --no-deps --document-private-items ${{ matrix.packages }}
env:
RUSTDOCFLAGS: "-D warnings"
- run: |
cargo clippy --all-targets --all-features ${{ matrix.packages }} -- -D warnings
- run: cargo test --all-features ${{ matrix.packages }}
smoke-test-relay: