-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 1.13 KB
/
ci.yml
File metadata and controls
40 lines (37 loc) · 1.13 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
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
appimage-ubuntu:
name: Appimage-ubuntu
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: date +%F > todays-date
- name: Restore cache for today's nightly.
uses: actions/cache@v2
with:
path: |
build
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
- name: Prepare
run: |
test -d build || {
mkdir -p build
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod +x nvim.appimage
mv nvim.appimage ./build/nvim
}
mkdir -p rtp
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim rtps/plenary.nvim
git clone --depth 1 https://github.com/kana/vim-textobj-user.git rtps/vim-textobj-user
git clone --depth 1 https://github.com/sgur/vim-textobj-parameter.git rtps/vim-textobj-parameter
- name: Run tests
run: |
export PATH="${PWD}/build/:${PATH}"
make test