mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 15:30:49 +00:00
29 lines
515 B
YAML
29 lines
515 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
|
|
- name: Format
|
|
run: cargo fmt --all --check
|
|
|
|
- name: Lint
|
|
run: cargo clippy --all-targets --all-features -- -D warnings
|
|
|
|
- name: Check
|
|
run: cargo check --all-targets --all-features
|