chore: add github workflow to run tests
This commit is contained in:
parent
15e031c825
commit
a24a20eb48
|
@ -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"
|
|
@ -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
|
Loading…
Reference in New Issue