From db47786fb83b16aa821c96dc1132ba33b59187ec Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 30 Jan 2020 09:58:13 +0900 Subject: Add some workflows --- .github/workflows/linux_neovim.yml | 44 ++++++++++++++++++++++++++++++++++ .github/workflows/mac_neovim.yml | 44 ++++++++++++++++++++++++++++++++++ .github/workflows/windows_neovim.yml | 46 ++++++++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 .github/workflows/linux_neovim.yml create mode 100644 .github/workflows/mac_neovim.yml create mode 100644 .github/workflows/windows_neovim.yml diff --git a/.github/workflows/linux_neovim.yml b/.github/workflows/linux_neovim.yml new file mode 100644 index 0000000..6776b63 --- /dev/null +++ b/.github/workflows/linux_neovim.yml @@ -0,0 +1,44 @@ +name: linux_neovim + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + name: [neovim-v04-x64,neovim-nightly-x64] + include: + - name: neovim-v04-x64 + os: ubuntu-latest + neovim_version: v0.4.3 + - name: neovim-nightly-x64 + os: ubuntu-latest + neovim_version: nightly + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v1 + - name: Download neovim + shell: bash + run: | + mkdir -p ~/nvim/bin + curl -L https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim.appimage -o ~/nvim/bin/nvim + chmod u+x ~/nvim/bin/nvim + - name: Download test runner + shell: bash + run: git clone --depth 1 --branch v1.5.4 --single-branch https://github.com/thinca/vim-themis ~/themis + - name: Run tests + shell: bash + run: | + export PATH=~/nvim/bin:$PATH + export PATH=~/themis/bin:$PATH + export THEMIS_VIM=nvim + nvim --version + themis --reporter spec diff --git a/.github/workflows/mac_neovim.yml b/.github/workflows/mac_neovim.yml new file mode 100644 index 0000000..4964d24 --- /dev/null +++ b/.github/workflows/mac_neovim.yml @@ -0,0 +1,44 @@ +name: mac_neovim + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [macos-latest] + name: [neovim-v04-x64,neovim-nightly-x64] + include: + - name: neovim-v04-x64 + os: macos-latest + neovim_version: v0.4.3 + - name: neovim-nightly-x64 + os: macos-latest + neovim_version: nightly + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v1 + - name: Download neovim + shell: bash + run: curl -L https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim-macos.tar.gz -o ~/nvim.tar.gz + - name: Extract neovim + shell: bash + run: tar xzf ~/nvim.tar.gz -C ~/ + - name: Download test runner + shell: bash + run: git clone --depth 1 --branch v1.5.4 --single-branch https://github.com/thinca/vim-themis ~/themis + - name: Run tests + shell: bash + run: | + export PATH=~/nvim-osx64/bin:$PATH + export PATH=~/themis/bin:$PATH + export THEMIS_VIM=nvim + nvim --version + themis --reporter spec diff --git a/.github/workflows/windows_neovim.yml b/.github/workflows/windows_neovim.yml new file mode 100644 index 0000000..a378a3d --- /dev/null +++ b/.github/workflows/windows_neovim.yml @@ -0,0 +1,46 @@ +name: windows_neovim + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [windows-latest] + name: [neovim-v04-x64,neovim-nightly-x64] + include: + - name: neovim-v04-x64 + os: windows-latest + neovim_version: v0.4.3 + neovim_arch: win64 + - name: neovim-nightly-x64 + os: windows-latest + neovim_version: nightly + neovim_arch: win64 + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v1 + - name: Download neovim + shell: PowerShell + run: Invoke-WebRequest -Uri https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim-${{matrix.neovim_arch}}.zip -OutFile neovim.zip + - name: Extract neovim + shell: PowerShell + run: Expand-Archive -Path neovim.zip -DestinationPath $env:USERPROFILE + - name: Download test runner + shell: PowerShell + run: git clone --depth 1 --branch v1.5.4 --single-branch https://github.com/thinca/vim-themis $env:USERPROFILE\themis + - name: Run tests + shell: cmd + run: | + SET PATH=%USERPROFILE%\Neovim\bin;%PATH%; + SET PATH=%USERPROFILE%\themis\bin;%PATH%; + SET THEMIS_VIM=nvim + nvim --version + themis --reporter spec -- cgit v1.2.3-54-g00ecf From 453cd30365434447ee8ee7c0ed45bac708f56465 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 30 Jan 2020 10:01:07 +0900 Subject: Add badges --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index dd8dc23..6d19055 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,10 @@ [![Actions Status](https://github.com/mattn/vim-lsp-settings/workflows/reviewdog/badge.svg)](https://github.com/mattn/vim-lsp-settings/actions) [![Actions Status](https://github.com/mattn/vim-lsp-settings/workflows/linux_vim/badge.svg)](https://github.com/mattn/vim-lsp-settings/actions) +[![Actions Status](https://github.com/mattn/vim-lsp-settings/workflows/linux_neovim/badge.svg)](https://github.com/mattn/vim-lsp-settings/actions) [![Actions Status](https://github.com/mattn/vim-lsp-settings/workflows/windows_vim/badge.svg)](https://github.com/mattn/vim-lsp-settings/actions) +[![Actions Status](https://github.com/mattn/vim-lsp-settings/workflows/windows_neovim/badge.svg)](https://github.com/mattn/vim-lsp-settings/actions) +[![Actions Status](https://github.com/mattn/vim-lsp-settings/workflows/mac_neovim/badge.svg)](https://github.com/mattn/vim-lsp-settings/actions) Auto configurations for Language Server for [vim-lsp](https://github.com/prabirshrestha/vim-lsp) -- cgit v1.2.3-54-g00ecf