1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:30:05 +08:00
SpaceVim/bundle/nvim-web-devicons/.github/workflows/lint.yml
2023-05-30 21:40:52 +08:00

34 lines
987 B
YAML

name: Lint
on: pull_request
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: leafo/gh-actions-lua@v9
with:
luaVersion: "5.1"
- uses: leafo/gh-actions-luarocks@v4
- name: Install luacheck
run: luarocks install luacheck
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
- name: Luacheck
run: luacheck lua plugin scripts
- uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
- uses: actions/checkout@v3
with:
repository: lifepillar/vim-colortemplate
path: vim-colortemplate
- name: Light Colorscheme
run: |
nvim --headless -c 'set rtp+=./vim-colortemplate' -c 'source scripts/generate_colors.lua' -c 'qall'
git diff --exit-code lua/nvim-web-devicons-light.lua