From d9ada71400436b106ff68c1f47e1988fc95ea5c3 Mon Sep 17 00:00:00 2001 From: Ae Date: Sat, 2 Mar 2024 16:18:19 -0800 Subject: [PATCH] chore/github-actions --- .github/workflows/main.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 31000a2..a5a7ae8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,12 +11,27 @@ env: jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + components: clippy, rustfmt + + - name: Check formatting + run: cargo fmt -- --check + + - name: Lint with clippy + run: cargo clippy -- -D warnings + - name: Build run: cargo build --verbose + - name: Run tests run: cargo test --verbose