# https://github.com/pre-commit/action

name: Pre-commit

on:
  pull_request:
  push:
    branches: 'main'

jobs:
  pre-commit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
      - run: npm ci
      - uses: actions/setup-python@v4
        with:
          python-version: '3.10'
          cache: pip
      - uses: pre-commit/action@v3.0.0
