Skip to content

Commit 9fead66

Browse files
committed
Use rhysd/action-setup-vim@v1 in gha tests
Makes it easier to support multiple neovim versions
1 parent 8a0bed9 commit 9fead66

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
build:
1111
name: Run tests
1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
neovim_version: ['nightly']
1316

1417
steps:
1518
- uses: actions/checkout@v2
@@ -25,8 +28,12 @@ jobs:
2528
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
2629
ln -s "$(pwd)" ~/.local/share/nvim/site/pack/vendor/start
2730
31+
- name: Setup neovim
32+
uses: rhysd/action-setup-vim@v1
33+
with:
34+
neovim: true
35+
version: ${{ matrix.neovim_version }}
36+
2837
- name: Run tests
2938
run: |
30-
curl -OL https://raw.githubusercontent.com/norcalli/bot-ci/master/scripts/github-actions-setup.sh
31-
source github-actions-setup.sh nightly-x64
3239
nvim --headless --noplugin -u tests/minimal.vim -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}"

0 commit comments

Comments
 (0)