* Feat: Enable sorting discussions by original comment (#422) * Feat: Improve popup UX (#426) * Feat: Automatically update MR summary details (#427) * Feat: Show update progress in winbar (#432) * Feat: Abbreviate winbar (#439) * Fix: Note Creation Bug (#441) * Fix: Checking whether comment can be created (#434) * Fix: Syntax in discussion tree (#433) * fix: improve indication of resolved threads and drafts (#442) * Docs: Various minor improvements (#445) --------- Co-authored-by: Jakub F. Bortlík <jakub.bortlik@proton.me>
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: Lua
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- develop
|
|
paths:
|
|
- 'lua/**' # Ignore changes to the Go code
|
|
jobs:
|
|
lua_lint:
|
|
name: Lint Lua 💅
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Luacheck linter
|
|
uses: lunarmodules/luacheck@v1
|
|
with:
|
|
args: --globals vim --no-max-line-length -- .
|
|
lua_format:
|
|
name: Formatting Lua 💅
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Action
|
|
uses: JohnnyMorganz/stylua-action@v3
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
version: latest
|
|
args: --check .
|
|
lua_test:
|
|
name: Run tests 🧪
|
|
strategy:
|
|
matrix:
|
|
nvim_version: [stable, nightly]
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Install neovim
|
|
uses: rhysd/action-setup-vim@v1
|
|
id: vim
|
|
with:
|
|
neovim: true
|
|
version: ${{ matrix.nvim_version }}
|
|
- name: Install luajit
|
|
uses: leafo/gh-actions-lua@v10
|
|
with:
|
|
luaVersion: "luajit-openresty"
|
|
- name: Install luarocks
|
|
uses: leafo/gh-actions-luarocks@v4
|
|
- name: Run tests
|
|
shell: bash
|
|
run: |
|
|
chmod +x lua-test.sh
|
|
./lua-test.sh
|