Skip to content

added cicd pipeline

added cicd pipeline #1

Workflow file for this run

name: Cargo Fmt, Check and Test
on:
push: ["main"]
pull_request: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
fmt-check-test:
name: Rust project - latest
runs-on: rustdocker/rust:nightly
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo fmt --check
- run: cargo clippy -- -D clippy::pedantic
- run: cargo audit
- run: cargo test --verbose