-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (33 loc) · 1.03 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Run Tests
on:
push:
branches: [ "*" ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
# Install dependencies for Neovim if needed
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install libtool-bin autoconf automake cmake g++ pkg-config unzip gettext curl -y
- name: Install Neovim
run: |
sudo snap install nvim --classic
- name: Install Plenary
run: |
git clone https://github.com/nvim-lua/plenary.nvim.git
mkdir -p .local/share/nvim/lazy/
mv plenary.nvim .local/share/nvim/lazy/
# Ensure that Neovim's path and dependencies are correctly set
- name: Run Tests
env:
XDG_CONFIG_HOME: ${{ github.workspace }}/.config
XDG_DATA_HOME: ${{ github.workspace }}/.local/share
XDG_STATE_HOME: ${{ github.workspace }}/.local/state
XDG_CACHE_HOME: ${{ github.workspace }}/.cache
run: make test