Skip to content

Tests

Tests #1162

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
tests_vim:
name: Vim
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
vim-version: [v7.4.2119]
# vim-version: [v7.4.2119, head]
# vim-version: [v8.2.5172]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout kkoomen/vim-doge
uses: actions/checkout@v2
- name: Checkout junegunn/vader.vim
uses: actions/checkout@v2
with:
repository: junegunn/vader.vim
path: vader.vim
- name: Cache Cargo dependencies
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: ./scripts/build.sh
shell: bash
- name: Setup vim
uses: thinca/action-setup-vim@v1
id: vim
with:
vim_version: ${{ matrix.vim-version }}
vim_type: vim
- name: Run tests
run: ./scripts/run-vader-tests.sh "${{ steps.vim.outputs.executable }}"
shell: bash
# tests_neovim:
# name: NeoVim
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# vim-version: [v0.3.2, head]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout kkoomen/vim-doge
# uses: actions/checkout@v2
#
# - name: Checkout junegunn/vader.vim
# uses: actions/checkout@v2
# with:
# repository: junegunn/vader.vim
# path: vader.vim
#
# - name: Cache Cargo dependencies
# uses: actions/cache@v2
# with:
# path: ~/.cargo
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#
# - run: ./scripts/build.sh
# shell: bash
#
# - name: Setup vim
# uses: thinca/action-setup-vim@v1
# id: vim
# with:
# vim_version: ${{ matrix.vim-version }}
# vim_type: neovim
#
# - name: Run tests
# run: ./scripts/run-vader-tests.sh "${{ steps.vim.outputs.executable }}"
# shell: bash
#
# vint:
# name: Linter
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v1
# - run: pip install vim-vint
# - run: vint -s ./autoload ./plugin