Skip to content

Commit

Permalink
fix(ci): fix testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
s1n7ax committed Jan 9, 2024
1 parent 7816d35 commit 3ff07fd
Showing 1 changed file with 12 additions and 34 deletions.
46 changes: 12 additions & 34 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,25 @@
---
name: Run tests
name: Test

on:
pull_request: ~
push:
branches:
- main
pull_request:

jobs:
build:
name: Run tests
test:
runs-on: ubuntu-latest
strategy:
matrix:
neovim_version: ["nightly"]
nvim-versions: ["stable", "nightly"]

name: test
steps:
- uses: actions/checkout@v3
- run: date +%F > todays-date
- name: Restore cache for today's nightly.
uses: actions/cache@v2
with:
path: _neovim
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}

- name: Prepare plenary
run: |
git clone --depth 1 \
https://github.com/nvim-lua/plenary.nvim \
~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
ln -s "$(pwd)" \
~/.local/share/nvim/site/pack/vendor/start
- name: checkout
uses: actions/checkout@v3

- name: Setup neovim
uses: rhysd/action-setup-vim@v1
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim_version }}
version: ${{ matrix.nvim-versions }}

- name: Run tests
run: |
nvim \
--headless \
--noplugin \
-u tests/minimal.vim \
-c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}"
- name: run tests
run: make test

0 comments on commit 3ff07fd

Please sign in to comment.