66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
name: unit-tests
|
|
on: [push, pull_request]
|
|
jobs:
|
|
linux:
|
|
name: linux
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
vim:
|
|
- nightly
|
|
- v8.2.0000
|
|
- v8.1.0000
|
|
- v8.0.0000
|
|
- v7.4
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v2
|
|
- name: Setup Vim
|
|
uses: rhysd/action-setup-vim@v1
|
|
id: vim
|
|
with:
|
|
version: ${{ matrix.vim }}
|
|
- name: Run Tests
|
|
run: |
|
|
uname -a
|
|
export VIMPRG=${{ steps.vim.outputs.executable }}
|
|
$VIMPRG --version
|
|
cd test
|
|
./run_mru_tests.sh
|
|
windows:
|
|
name: windows
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Download Vim
|
|
shell: PowerShell
|
|
run: Invoke-WebRequest -Uri https://github.com/vim/vim-win32-installer/releases/download/v8.2.2488/gvim_8.2.2488_x64.zip -OutFile vim.zip
|
|
- name: Extract vim
|
|
shell: PowerShell
|
|
run: Expand-Archive -Path vim.zip -DestinationPath $env:USERPROFILE
|
|
- name: Run Tests
|
|
run: |
|
|
$env:PATH = $env:PATH + ';' + $env:USERPROFILE + '\vim\vim82'
|
|
Get-ComputerInfo -Property Windows*
|
|
vim --version
|
|
cd test
|
|
.\run_mru_tests.cmd
|
|
neovim-linux:
|
|
name: neovim-linux
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v2
|
|
- name: Setup Neovim
|
|
uses: rhysd/action-setup-vim@v1
|
|
id: vim
|
|
with:
|
|
version: stable
|
|
neovim: true
|
|
- name: Run Tests
|
|
run: |
|
|
uname -a
|
|
export VIMPRG=${{ steps.vim.outputs.executable }}
|
|
$VIMPRG --version
|
|
cd test
|
|
./run_mru_tests.sh
|