zed-discord-presence/.github/workflows/check.yml

28 lines
526 B
YAML

name: Check
on:
push:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: cache dependencies
uses: Swatinem/rust-cache@v2
- name: check
run: cargo check --all
- name: fmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all -- -D warnings