feat: add filtering when choosing merge requests (#346) feat: Add healthcheck (#345) refactor: Move to gomock (#349) feat: Makes the remote of the plugin configurable (#348) This is a #MINOR release.
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
name: Lua
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- develop
|
|
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
|