feat(tests): add vanilla vim (#423)

This commit is contained in:
Null Chilly 2023-03-02 10:23:38 +07:00 committed by GitHub
parent f08590be32
commit 06ceffdef5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 67 additions and 0 deletions

54
.github/workflows/vim.yml vendored Normal file
View file

@ -0,0 +1,54 @@
---
name: Vim
on:
pull_request: ~
push:
paths-ignore:
- "*.md"
branches:
- main
jobs:
ubuntu:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Vim
shell: bash
run: |
sudo apt-get install vim-gtk lua5.4
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- name: Run vim
run: |
vim --version
vim -u tests/init.vim
macos:
name: Macos
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install Vim
run: |
brew install vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- name: Run vim
run: |
vim --version
vim -u tests/init.vim
# windows:
# name: Windows
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install Vim
# run: |
# choco install vim
# iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
# ni $HOME/vimfiles/autoload/plug.vim -Force
# - name: Run vim
# run: |
# vim --version
# vim -u tests/init.vim

13
tests/init.vim Normal file
View file

@ -0,0 +1,13 @@
try
call plug#begin()
Plug expand('<sfile>')[0:-16]
call plug#end()
lua require("catppuccin").setup {}
colorscheme catppuccin
catch
echo v:exception
1cq
finally
0cq
endtry