From b9493fbba045b4e5a2819b3345eb99aaad23e549 Mon Sep 17 00:00:00 2001 From: nullchilly Date: Thu, 2 Mar 2023 10:21:13 +0700 Subject: [PATCH] feat(tests): add vanilla vim --- .github/workflows/neovim.yml | 112 +++++++++++++++++------------------ .github/workflows/vim.yml | 28 ++++----- 2 files changed, 70 insertions(+), 70 deletions(-) diff --git a/.github/workflows/neovim.yml b/.github/workflows/neovim.yml index 51ce1db2c..97336115e 100644 --- a/.github/workflows/neovim.yml +++ b/.github/workflows/neovim.yml @@ -1,56 +1,56 @@ -# --- -# name: Neovim -# on: -# pull_request: ~ -# push: -# paths-ignore: -# - "*.md" -# branches: -# - main -# -# jobs: -# ubuntu: -# name: Ubuntu -# runs-on: ubuntu-latest -# -# steps: -# - uses: actions/checkout@v3 -# - name: Install Neovim -# shell: bash -# run: | -# wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.deb -O /tmp/nvim.deb -# sudo dpkg -i /tmp/nvim.deb -# - name: Run neovim -# run: | -# nvim --version -# nvim --headless -u tests/init.lua +q -# macos: -# name: Macos -# runs-on: macos-latest -# -# steps: -# - uses: actions/checkout@v3 -# - name: Install Neovim -# run: | -# wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz -# xattr -c ./nvim-macos.tar.gz -# tar xzvf nvim-macos.tar.gz &> /dev/null -# ln -s $(pwd)/nvim-macos/bin/nvim /usr/local/bin/nvim -# - name: Run neovim -# run: | -# nvim --version -# nvim --headless -u tests/init.lua +q -# windows: -# name: Windows -# runs-on: windows-latest -# steps: -# - uses: actions/checkout@v3 -# - name: Install Neovim -# run: | -# C:\msys64\usr\bin\wget.exe -q https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip -# 7z x nvim-win64.zip -# Add-Content $env:GITHUB_PATH ".\nvim-win64\bin\" -# - name: Run neovim -# run: | -# nvim --version -# nvim --headless -u tests/init.lua +q +--- +name: Neovim +on: + pull_request: ~ + push: + paths-ignore: + - "*.md" + branches: + - main + +jobs: + ubuntu: + name: Ubuntu + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Install Neovim + shell: bash + run: | + wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.deb -O /tmp/nvim.deb + sudo dpkg -i /tmp/nvim.deb + - name: Run neovim + run: | + nvim --version + nvim --headless -u tests/init.lua +q + macos: + name: Macos + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + - name: Install Neovim + run: | + wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz + xattr -c ./nvim-macos.tar.gz + tar xzvf nvim-macos.tar.gz &> /dev/null + ln -s $(pwd)/nvim-macos/bin/nvim /usr/local/bin/nvim + - name: Run neovim + run: | + nvim --version + nvim --headless -u tests/init.lua +q + windows: + name: Windows + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Install Neovim + run: | + C:\msys64\usr\bin\wget.exe -q https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip + 7z x nvim-win64.zip + Add-Content $env:GITHUB_PATH ".\nvim-win64\bin\" + - name: Run neovim + run: | + nvim --version + nvim --headless -u tests/init.lua +q diff --git a/.github/workflows/vim.yml b/.github/workflows/vim.yml index 64b22f5f7..e2c6d8a6e 100644 --- a/.github/workflows/vim.yml +++ b/.github/workflows/vim.yml @@ -38,17 +38,17 @@ jobs: 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 + # 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