Skip to content

Commit 39b0c65

Browse files
committed
Add Luacheck linter CI job
1 parent debe3d9 commit 39b0c65

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/luacheck.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Luacheck
2+
on: [push, pull_request]
3+
jobs:
4+
luacheck:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v2
9+
- name: Setup Lua
10+
uses: leafo/gh-actions-lua@v5
11+
with:
12+
luaVersion: 5.3
13+
- name: Setup Lua Rocks
14+
uses: leafo/gh-actions-luarocks@v2
15+
- name: Instalal luacheck
16+
run: luarocks install luacheck
17+
- name: Lint all the Lua code
18+
run: luacheck .

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
[![Rust Build](https://img.shields.io/github/workflow/status/alerque/vim-commonmark/Rust?label=Rust)](https://github.com/alerque/vim-commonmark/actions?workflow=Rust)
44
[![Rust Code Format](https://img.shields.io/github/workflow/status/alerque/vim-commonmark/Rustfmt?label=Rustfmt&logo=Rust)](https://github.com/alerque/vim-commonmark/actions?workflow=Rustfmt)
5-
[![Vint](https://github.com/alerque/vim-commonmark/workflows/Vint/badge.svg)](https://github.com/alerque/vim-commonmark/actions?workflow=Vint)
5+
[![VimL Lint Status](https://github.com/alerque/vim-commonmark/workflows/Vint/badge.svg)](https://github.com/alerque/vim-commonmark/actions?workflow=Vint)
6+
[![Lua Lint Status](https://img.shields.io/github/workflow/status/alerque/vim-commonmark/Luacheck?label=Luacheck&logo=Lua)](https://github.com/alerque/vim-commonmark/actions?workflow=Luacheck)
67

78
Vim syntax highlighting and filetype plugin for [CommonMark][commonmark] using the [pulldown-cmark][pulldown-cmark] parser to inform the parsing. Because the syntax is not cobbled together from regular expressions but informed by a reas parser it will only ever highlight 100% valid CommonMark syntax (no false positives!).
89

0 commit comments

Comments
 (0)