Skip to content

use once_cell to avoid unsafe blocks #230

use once_cell to avoid unsafe blocks

use once_cell to avoid unsafe blocks #230

Workflow file for this run

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo clippy -- --deny warnings
- run: cargo clippy --tests -- --deny warnings
- run: cargo fmt --check
- run: cargo build --verbose
- run: cargo test --verbose