Add tests setup #8
Workflow file for this run
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: test | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
lua: | |
strategy: | |
matrix: | |
version: [stable, nightly] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Neovim setup | |
uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: ${{ matrix.version }} | |
- name: Set up pkgx with LuaJIT and LuaRocks | |
uses: pkgxdev/setup@v1 | |
with: | |
+: [email protected] luarocks.org | |
- name: Install neotest | |
run: luarocks --lua-dir=$HOME/.pkgx/luajit.org/v2.1.0 --lua-version=5.1 install neotest | |
- name: Install busted | |
run: luarocks --lua-dir=$HOME/.pkgx/luajit.org/v2.1.0 --lua-version=5.1 install busted | |
- name: Run tests | |
run: make unit-test |