Consistent lua formatting and linting across pre-commit, neovim, and CI #156
Workflow file for this run
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: lint_and_format | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- dev | |
- main | |
# jobs: | |
# format: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: yamlfmt | |
# uses: yk-lab/[email protected] | |
# | |
# lint: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: Setup lua | |
# run: | | |
# sudo apt-get update | |
# sudo apt-get install luarocks | |
# sudo luarocks install luacheck | |
# | |
# - name: Lint lua | |
# run: luacheck lua/ | |
# | |
# - name: Lint yaml | |
# uses: reviewdog/action-yamllint@v1 | |
# with: | |
# github_token: ${{ secrets.github_token }} | |
# fail_level: error | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- name: Setup lua | |
run: | | |
sudo apt-get update | |
sudo apt-get install luarocks | |
sudo luarocks install luacheck | |
- uses: pre-commit/[email protected] |