-
-
Notifications
You must be signed in to change notification settings - Fork 245
44 lines (39 loc) · 1.47 KB
/
test.yaml
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
name: Run tests
on: pull_request_target
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
# only install required dependencies, make build uses bundled libraries, etc.
# from here: https://github.com/neovim/neovim/blob/3a5dddf24f9d4d8959194b0cd3c6a7dd0cbd73ae/.github/scripts/install_deps_ubuntu.sh
# gperf is needed for neovim 0.7, the bundled version does not seem to build.
- run: |
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install -y \
autoconf \
automake \
build-essential \
cmake \
cpanminus \
curl \
gettext \
libtool-bin \
locales-all \
ninja-build \
pkg-config \
unzip \
gperf
# install luajit+headers for jsregexp
sudo apt-get install -y libluajit-5.1-dev luajit
# libuv is installed by default, but the version is too old; remove it.
sudo apt-get remove libuv1-dev
# explicitly set LUAJIT-variable since nvim is not available when the
# makefile's variables are evaluated, but that's not a problem since we
# actually know that we'll build with luajit, and not lua, and can just
# set it manually.
- run: make test LUAJIT=LuaJIT