Run tests via nlua/busted on gha #846
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: Run tests | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
neovim_version: ['nightly', 'v0.6.1'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup neovim | |
uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: ${{ matrix.neovim_version }} | |
- uses: leafo/gh-actions-lua@v9 | |
- uses: leafo/gh-actions-luarocks@v4 | |
- name: Install nlua and busted | |
run: | | |
luarocks install --local nlua | |
luarocks config --local lua_version 5.1 | |
luarocks config --local lua_interpreter nlua | |
luarocks config --local variables.LUA_BINDIR ~/.luarocks/bin | |
luarocks install --local busted | |
- name: Run tests | |
run: | | |
busted tests |