Basic Rust CI

This commit is contained in:
Victor Mignot 2022-09-22 00:06:28 -04:00
parent c5a0d19494
commit 2dfaa8d428
No known key found for this signature in database
GPG key ID: FFE4EF056FB5E0D0

30
.github/workflows/code-quality.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: code-quality
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Installing Rust toolchain
uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
- name: Format
run: cargo fmt --check
- name: Lint
run: cargo clippy
- name: Tests
run: cargo test
- name: Build
run: cargo build --verbose