-
Notifications
You must be signed in to change notification settings - Fork 11
59 lines (53 loc) · 1.6 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: build
# When the 'permissions' key is specified, unspecified permission scopes (e.g.,
# actions, checks, etc.) are set to no access (none).
permissions:
contents: read
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
# Run daily (* is a special character in YAML, so quote the string)
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
# When git-ref is empty, HEAD will be checked out.
git-ref:
description: Optional git ref (branch, tag, or full SHA)
required: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# When the ref is empty, HEAD will be checked out.
ref: ${{ github.event.inputs.git-ref }}
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install lua-check neovim
# Manually installing Vim is necessary until the repo version includes
# support for vim9script.
git clone https://github.com/vim/vim.git
cd vim
./configure
make -j $(nproc)
sudo make install
- name: Check Help Tags
run: |
# Check if the help tags file should be updated
vim -c 'helptags doc/' -c quit
test -z "$(git status --porcelain doc/)"
- name: Luacheck
run: luacheck .
- name: Tests
run: |
mkdir -p ~/.local/share/nvim/site/pack/plugins/start/
ln -s "$PWD" ~/.local/share/nvim/site/pack/plugins/start/
mkdir -p ~/.vim/pack/plugins/start/
ln -s "$PWD" ~/.vim/pack/plugins/start/
tests/run.py