yorokobot/.github/workflows/code-quality.yml
2022-10-17 10:29:11 -04:00

33 lines
597 B
YAML

name: Code Quality
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
jobs:
code-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Installing Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Format
run: cargo fmt --check
- name: Lint
run: cargo clippy -- -D warnings
- name: Tests
run: cargo test
- name: Build
run: cargo build --verbose