-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (65 loc) · 2.01 KB
/
ci.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
#
# see https://github.com/folke/lazy.nvim/blob/main/.github/workflows/ci.yml
name: CI
on:
pull_request:
push:
branches:
- master
tags:
- '*'
jobs:
test:
name: test
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Environment information
run: |
uname
uname -a
- uses: actions/checkout@v2
- name: Install fzf
run: sudo apt-get -y install fzf
- name: Download Neovim
run: |
mkdir -p /tmp/nvim
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
cd /tmp/nvim
chmod a+x ./nvim.appimage
./nvim.appimage --appimage-extract
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
- name: Install python3
uses: actions/setup-python@v4
env:
DEBUG_SSH: ${{ secrets.DEBUG_SSH }}
if: ${{ env.DEBUG_SSH == 'true' }}
with:
python-version: '3.x'
# architecture: 'x64' #defaults to x64
- name: Install python neovim module
env:
DEBUG_SSH: ${{ secrets.DEBUG_SSH }}
if: ${{ env.DEBUG_SSH == 'true' }}
run: |
pip3 install neovim
- name: Setup upterm session
env:
DEBUG_SSH: ${{ secrets.DEBUG_SSH }}
if: ${{ env.DEBUG_SSH == 'true' }}
uses: lhotari/action-upterm@v1
with:
## limits ssh access and adds the ssh public key for the user which triggered the workflow
# limit-access-to-actor: true
## limits ssh access and adds the ssh public keys of the listed GitHub users
limit-access-to-users: hjdivad,rwjblue
- name: Install Plugins
env:
NVIM_FLAGS: ${{ secrets.NvimFlags }}
run: |
echo TODO: install plugins
- name: test
env:
DEBUG: ${{ secrets.Debug }}
run: tests/run