Skip to content

Commit

Permalink
feat: enhanced ci pipeline, changed test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
standard3 committed Jan 12, 2025
1 parent 380ab34 commit 82b5894
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Rust CI

on:
push:
Expand All @@ -14,13 +14,31 @@ jobs:
runs-on: ubuntu-latest

steps:
# Check format, lint code, build and test it
- uses: actions/checkout@v4
- name: Format
run: cargo fmt --verbose
- name: Lint
run: cargo clippy --verbose
- name: Build
- name: Checkout code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Install nextest
uses: taiki-e/install-action@nextest

- name: Run rustfmt
run: cargo fmt --all -- --check

- name: Run linter
run: cargo clippy --all-targets --all -- -D warnings

- name: Build project
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

- name: Tests
run: cargo nextest --all

- name: Doctests
run: cargo test --doc

- name: Generate documentation
run: cargo doc --no-deps --document-private-items

0 comments on commit 82b5894

Please sign in to comment.