Skip to content

Use nvim-test for functional tests #1527

Use nvim-test for functional tests

Use nvim-test for functional tests #1527

Workflow file for this run

name: CI
on:
push:
branches: 'master'
pull_request:
branches: 'master'
schedule:
- cron: 0 0 * * *
jobs:
linux:
strategy:
matrix:
version: [stable, v0.7.0, nightly]
runs-on: ubuntu-latest
env:
NVIM_TEST_VERSION: ${{ matrix.version }}
steps:
- name: Set current date
id: vars
run: |
echo "nvim_test_path=$HOME/.data/nvim-test/" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: ${{ steps.vars.outputs.nvim_test_path }}
key: ${{ runner.os }}-nvim-test-${{ matrix.version }}
- name: Setup lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "luajit"
- name: Setup luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Setup vusted
run: |
luarocks install vusted 2.3.4-1
- name: Run functional tests
env:
NVIM_TEST_VERSION: ${{ matrix.version }}
NVIM_RUNNER_VERSION: v0.10.2
run: |
make functionaltest
- name: Run unit tests
run: |
export VUSTED_NVIM=$HOME/.data/nvim-test/nvim-test-${{ matrix.version }}/bin/nvim
make unittest
- name: Check formatting
uses: JohnnyMorganz/stylua-action@v4
with:
version: v0.20.0
token: ${{ secrets.GITHUB_TOKEN }}
args: --check lua/ test/