fix: Fixes MR selection if there are multiple targets #534
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |