Trying to fix ci crash #8155
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pre-commit | |
permissions: read-all | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
merge_group: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
pre-commit: | |
name: Pre-commit | |
runs-on: ubuntu-latest | |
env: | |
CURSORLESS_REPO_ROOT: ${{ github.workspace }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm --color install | |
- name: Install lua | |
uses: leafo/gh-actions-lua@v9 | |
- name: Install luarocks | |
uses: leafo/gh-actions-luarocks@v4 | |
- name: Run pre-commit hooks | |
uses: pre-commit/[email protected] | |
- name: Auto-fix pre-commit issues | |
uses: pre-commit-ci/[email protected] | |
if: always() |