chore: add github workflow to run tests

This commit is contained in:
Steven Arcangeli 2021-12-09 17:12:28 -08:00
parent 15e031c825
commit a24a20eb48
2 changed files with 32 additions and 0 deletions

8
.github/workflows/install_nvim.sh vendored Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
PLUGINS="$HOME/.local/share/nvim/site/pack/plugins/start"
mkdir -p "$PLUGINS"
wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim.appimage
chmod +x nvim.appimage
sudo mv ./nvim.appimage /usr/bin/nvim
git clone --depth=1 https://github.com/nvim-lua/plenary.nvim.git "$PLUGINS/plenary.nvim"

24
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Run tests
on: [push, pull_request]
jobs:
run_tests:
strategy:
matrix:
nvim_tag: [v0.5.0, v0.5.1, v0.6.0]
name: Run tests
runs-on: ubuntu-latest
env:
NVIM_TAG: ${{ matrix.nvim_tag }}
steps:
- uses: actions/checkout@v2
- name: Install Neovim and dependencies
run: |
bash ./.github/workflows/install_nvim.sh
- name: Run tests
run: |
bash ./run_tests.sh