Skip to content

Consistent lua formatting and linting across pre-commit, neovim, and CI #156

Consistent lua formatting and linting across pre-commit, neovim, and CI

Consistent lua formatting and linting across pre-commit, neovim, and CI #156

Workflow file for this run

---
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]