20 lines
390 B
YAML
20 lines
390 B
YAML
|
name: Pre-commit checks
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
push:
|
||
|
branches: [main]
|
||
|
|
||
|
jobs:
|
||
|
pre-commit:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: actions/setup-python@v2
|
||
|
- uses: actions-rs/toolchain@v1
|
||
|
with:
|
||
|
profile: minimal
|
||
|
toolchain: nightly
|
||
|
components: rustfmt, clippy
|
||
|
- uses: pre-commit/action@v2.0.3
|