Skip to content

Bump actions/cache from 4 to 5 #90

Bump actions/cache from 4 to 5

Bump actions/cache from 4 to 5 #90

Workflow file for this run

name: "Pre-commit"
on:
workflow_dispatch:
push:
branches: [main, master]
pull_request:
permissions:
contents: read
jobs:
pre-commit:
name: Pre-commit hooks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Install pre-commit
run: pip install pre-commit
- name: Cache pre-commit
uses: actions/cache@v5
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure