-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (37 loc) · 1.08 KB
/
test.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
name: Run Tests
on:
push:
workflow_dispatch:
jobs:
run_tests_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 # Checking out the repo
- name: Install tooling
run: |
sudo apt-get update
sudo apt-get install uuid-runtime curl jq
curl -sL https://api.github.com/repos/neovim/neovim/releases/latest | \
jq -r '.assets[].browser_download_url' | \
grep nvim-linux64.tar.gz | \
head -n 1 | \
xargs curl -LO && \
tar zxf nvim-linux64.tar.gz
- name: Run tests
run: |
NVIM_BIN=./nvim-linux64/bin/nvim /bin/bash test/test.sh
exit $?
run_tests_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2 # Checking out the repo
- name: Install Neovim
run: |
choco install neovim
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
refreshenv
- name: Run tests
run: |
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
powershell -File test\test.ps1
exit $LASTEXITCODE