Skip to content

Initialize CodeM8 project #7

Initialize CodeM8 project

Initialize CodeM8 project #7

Workflow file for this run

name: Rust CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
rust:
name: Build, test, and format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup toolchain install stable --profile minimal --component rustfmt --component clippy
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run Clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::too_many_lines -W clippy::too_many_arguments -W clippy::type_complexity -W clippy::excessive_nesting -W clippy::cognitive_complexity -W clippy::pedantic -W clippy::nursery -W clippy::cargo
- name: Build
run: cargo build --locked --all-targets
- name: Test
run: cargo test --locked --all-targets