mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
39 lines
774 B
YAML
39 lines
774 B
YAML
|
name: lint
|
||
|
on:
|
||
|
push:
|
||
|
branches: '**'
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- 'master'
|
||
|
- 'rolling'
|
||
|
|
||
|
jobs:
|
||
|
lua-linter:
|
||
|
name: "Linting with luacheck"
|
||
|
runs-on: ubuntu-20.04
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- uses: leafo/gh-actions-lua@v8
|
||
|
- uses: leafo/gh-actions-luarocks@v4
|
||
|
|
||
|
- name: Use luacheck
|
||
|
run: luarocks install luacheck
|
||
|
|
||
|
- name: Run luacheck
|
||
|
run: luacheck *.lua lua/
|
||
|
|
||
|
shell-linter:
|
||
|
name: "Linting with shellcheck"
|
||
|
runs-on: ubuntu-20.04
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- name: Use shellcheck
|
||
|
run: sudo apt-get install shellcheck
|
||
|
|
||
|
- name: Run shellcheck
|
||
|
run: |
|
||
|
pwd
|
||
|
shellcheck $(find . -name "*.sh")
|