mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
28 lines
717 B
YAML
28 lines
717 B
YAML
name: pre-commit
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v3
|
|
- name: Setup Rust toolchain
|
|
run: rustup toolchain install stable --profile minimal
|
|
- name: Cache Cargo dependencies
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
crates/target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
- name: Fetch Cargo dependencies
|
|
run: cd crates && cargo fetch --locked
|
|
- uses: pre-commit/action@v3.0.1
|