27 lines
424 B
YAML
27 lines
424 B
YAML
|
name: Code formatting
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
paths:
|
||
|
- 'src/**'
|
||
|
- '.github/**'
|
||
|
pull_request:
|
||
|
paths:
|
||
|
- 'src/**'
|
||
|
- '.github/**'
|
||
|
|
||
|
jobs:
|
||
|
fmt_check:
|
||
|
name: Fmt
|
||
|
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
|
||
|
- uses: dtolnay/rust-toolchain@stable
|
||
|
with:
|
||
|
components: rustfmt
|
||
|
|
||
|
- name: Check code formatting
|
||
|
run: cargo fmt -- --check
|