From 31c2cb8b48fe01645159cde2d0dc592cb0a9ad66 Mon Sep 17 00:00:00 2001 From: Yinzuo Jiang Date: Sun, 4 Feb 2024 13:42:59 +0800 Subject: [PATCH] ci: create load_vimrc.yml --- .github/workflows/load_vimrc.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/load_vimrc.yml diff --git a/.github/workflows/load_vimrc.yml b/.github/workflows/load_vimrc.yml new file mode 100644 index 0000000..6c2b2a5 --- /dev/null +++ b/.github/workflows/load_vimrc.yml @@ -0,0 +1,23 @@ +name: load_vimrc + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + load_vimrc: + runs-on: ubuntu-16.04 + steps: + - uses: actions/checkout@v3 + - name: install vim-tiny + - run: sudo apt update && sudo apt install vim-tiny + - name: single vimrc with vi + run: vi -E -s -u .vimrc -c "qa!" + - name: install vim + run: sudo apt install vim + - name: single vimrc + run: vim -E -s -u .vimrc -c "qa!" + - name: full vimrc + run: ln -s `pwd`/root/.vim ~/.vim && vim -E -s -c "qa!"