Only create autocmd for existing lsps #854
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: Format | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
name: pre-commit | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install luacheck | |
run: sudo apt update && sudo apt-get install luarocks libxml2-utils && sudo luarocks install luacheck | |
- uses: prefix-dev/[email protected] | |
with: | |
pixi-version: v0.22.0 | |
cache: true | |
- run: | | |
pixi run pip install sourcery | |
pixi run sourcery login --token ${{ secrets.SOURCERY_TOKEN }} | |
- run: pixi run lint |