Skip to content

Commit 64ffe07

Browse files
authored
Add a workflow for running tests using GitHub Actions (#207)
1 parent b97c8fc commit 64ffe07

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/run-tests.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
VROOM_VERSION: 0.14.0
7+
MAKTABA_VERSION: 1.14.0
8+
9+
jobs:
10+
run-tests:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os:
15+
- ubuntu-22.04
16+
vim-flavour:
17+
- vim
18+
- neovim
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Install vim
23+
if: ${{ matrix.vim-flavour == 'vim' }}
24+
run: |
25+
sudo apt update
26+
sudo apt install vim vim-gtk xvfb
27+
- name: Install neovim
28+
if: ${{ matrix.vim-flavour == 'neovim' }}
29+
run: |
30+
sudo apt update
31+
sudo apt install neovim python3-neovim xvfb
32+
- name: Install vroom
33+
run: |
34+
wget https://github.com/google/vroom/releases/download/v${VROOM_VERSION}/vroom_${VROOM_VERSION}-1_all.deb
35+
sudo dpkg -i ./vroom_${VROOM_VERSION}-1_all.deb
36+
- name: Install plugin dependencies
37+
run: |
38+
git clone -b ${MAKTABA_VERSION} https://github.com/google/vim-maktaba.git ../maktaba/
39+
git clone https://github.com/google/vim-glaive.git ../glaive/
40+
41+
- name: Run tests (vim)
42+
if: ${{ matrix.vim-flavour == 'vim' }}
43+
timeout-minutes: 30
44+
run: |
45+
xvfb-run script -q -e -c 'vroom --crawl'
46+
- name: Run tests (neovim)
47+
if: ${{ matrix.vim-flavour == 'neovim' }}
48+
timeout-minutes: 30
49+
run: |
50+
xvfb-run script -q -e -c 'vroom --neovim --crawl'

0 commit comments

Comments
 (0)