Skip to content

ci: setup github actions workflows #2

ci: setup github actions workflows

ci: setup github actions workflows #2

Workflow file for this run

name: Rust Linting
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run cargo fmt
run: cargo fmt -- --check
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run cargo clippy
run: cargo clippy --all-targets --workspace -- -D warnings