Skip to content

Commit

Permalink
test: make tests work on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
delphinus committed Jul 26, 2023
1 parent 5d3f96e commit c108c4a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on:
- push
- pull_request
jobs:
test:
name: Run tests
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
# TODO: PlenaryBustedDirectory seems not to run on Windows
# - windows-latest
version:
- v0.9.0
- nightly
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Checkout plenary.nvim
uses: actions/checkout@v3
with:
repository: nvim-lua/plenary.nvim
path: plenary.nvim
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
id: nvim
with:
neovim: true
version: ${{ matrix.version }}
- name: Run tests
env:
PLENARY_PATH: plenary.nvim
EXE: ${{ steps.nvim.outputs.executable }}
run: |-
make test NVIM=$(perl -e '$_ = $ENV{EXE}; s,\\,/,g; print')

0 comments on commit c108c4a

Please sign in to comment.