1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 02:00:05 +08:00
SpaceVim/bundle/telescope.nvim-0.1.2/.github/workflows/lint.yml

32 lines
667 B
YAML
Raw Permalink Normal View History

2022-05-16 22:20:10 +08:00
name: Linting and style checking
on: [push, pull_request]
jobs:
luacheck:
name: Luacheck
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
2022-05-16 22:20:10 +08:00
- name: Prepare
run: |
sudo apt-get update
sudo apt-get install -y luarocks
sudo luarocks install luacheck
- name: Lint
run: sudo make lint
stylua:
name: stylua
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v3
2022-05-16 22:20:10 +08:00
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
2022-05-16 22:20:10 +08:00
# CLI arguments
args: --color always --check lua/