Skip to content

Commit

Permalink
feat(tests): add vanilla vim (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchilly authored Mar 2, 2023
1 parent f08590b commit 06ceffd
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/vim.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions tests/init.vim
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 06ceffd

Please sign in to comment.