-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.32 KB
/
Copy pathtest.yml
File metadata and controls
47 lines (40 loc) · 1.32 KB
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
42
43
44
45
46
47
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Node.js and dependencies
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- run: npm ci
- name: Clone Neovim dependencies
run: |
mkdir -p dependencies
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim.git dependencies/plenary.nvim
git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter.git dependencies/nvim-treesitter
- name: Setup Neovim 0.11.1
shell: bash
run: |
mkdir -p _nvim
curl -sL "https://github.com/neovim/neovim/releases/download/v0.11.1/nvim-linux-x86_64.tar.gz" | tar xzf - --strip-components=1 -C _nvim
echo "${PWD}/_nvim/bin" >> $GITHUB_PATH
- name: Update Treesitter parsers
shell: bash
run: |
export PATH="${PWD}/_nvim/bin:${PATH}"
_nvim/bin/nvim --headless -u scripts/minimal.vim -c 'TSUpdateSync javascript typescript' -c 'q'
- name: Run tests
shell: bash
run: |
export PATH="${PWD}/_nvim/bin:${PATH}"
_nvim/bin/nvim --version
make test