Skip to content

feat: add new actions #8

feat: add new actions

feat: add new actions #8

Workflow file for this run

name: Rust
on:
push
env:
CARGO_TERM_COLOR: always
jobs:
test:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --all-features --all-targets
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: rustup toolchain install
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: rustfmt
run: cargo fmt --all --check