1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:30:05 +08:00
SpaceVim/.github/workflows/check.yml

162 lines
5.0 KiB
YAML
Raw Normal View History

2021-08-21 13:21:11 +08:00
name: test
2021-02-16 21:28:22 +08:00
on: [push, pull_request]
jobs:
2021-08-21 13:21:11 +08:00
Linux:
2021-02-16 21:28:22 +08:00
strategy:
fail-fast: false
matrix:
2021-02-16 22:40:12 +08:00
include:
2021-08-11 13:45:38 +08:00
- vimbin: vim
vimtag: nightly
2021-02-21 15:56:37 +08:00
- vimbin: vim
vimtag: v7.4.052
2022-04-11 16:04:35 +08:00
disable_es: true
2021-02-21 15:56:37 +08:00
- vimbin: vim
vimtag: v7.4.629
2022-04-11 16:04:35 +08:00
disable_es: true
2021-02-21 15:56:37 +08:00
- vimbin: vim
vimtag: v7.4.1689
2022-04-11 16:04:35 +08:00
disable_es: true
2021-02-21 15:56:37 +08:00
- vimbin: vim
vimtag: v8.0.0027
2022-04-11 16:04:35 +08:00
disable_es: true
- vimbin: vim
vimtag: v8.0.0183
disable_es: true
- vimbin: vim
vimtag: v8.0.0184
2021-02-21 15:56:37 +08:00
- vimbin: vim
vimtag: v8.0.1453
2021-02-16 22:40:12 +08:00
- vimbin: vim
2021-02-17 23:15:18 +08:00
vimtag: v8.1.2269
- vimbin: vim
vimtag: v8.2.2434
- vimbin: vim
vimtag: v8.2.3995
2022-04-02 12:11:41 +08:00
- vimbin: nvim
vimtag: nightly
2022-03-23 22:31:43 +08:00
- vimbin: nvim
vimtag: v0.6.1
- vimbin: nvim
vimtag: v0.6.0
- vimbin: nvim
vimtag: v0.5.1
2021-08-11 13:45:38 +08:00
- vimbin: nvim
vimtag: v0.5.0
- vimbin: nvim
vimtag: v0.4.4
- vimbin: nvim
vimtag: v0.4.3
- vimbin: nvim
vimtag: v0.4.2
- vimbin: nvim
vimtag: v0.4.0
- vimbin: nvim
vimtag: v0.3.8
2021-03-31 19:47:05 +08:00
runs-on: ubuntu-18.04
2021-02-17 23:15:18 +08:00
env:
VIM_BIN: ${{ matrix.vimbin }}
VIM_TAG: ${{ matrix.vimtag }}
DEPS: /home/runner/work/SpaceVim/deps
2022-04-11 16:04:35 +08:00
DISABLE_ES: ${{ matrix.disable_es }}
2021-02-16 21:28:22 +08:00
steps:
- name: Checkout
uses: actions/checkout@master
2021-02-17 23:15:18 +08:00
- name: Install dependencies
run: |
sudo apt-get update
2021-08-14 09:30:57 +08:00
sudo apt-get install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip curl lua5.2 liblua5.2-dev
2021-02-16 22:40:12 +08:00
- name: Install ${{ matrix.vimbin }} ${{ matrix.vimtag }}
2021-02-16 21:28:22 +08:00
run: |
2021-02-16 22:40:12 +08:00
.ci/install/linux.sh $VIM_BIN $VIM_TAG
- name: Run test
2021-02-16 21:28:22 +08:00
run: |
2021-02-16 22:40:12 +08:00
if [ "$VIM_BIN" = "nvim" ]; then
export PATH="${DEPS}/_neovim/${VIM_TAG}/bin:${PATH}"
export VIM="${DEPS}/_neovim/${VIM_TAG}/share/nvim/runtime"
else
export PATH="${DEPS}/_vim/${VIM_TAG}/bin:${PATH}"
export VIM="${DEPS}/_vim/${VIM_TAG}/share/vim"
fi
2022-04-11 16:04:35 +08:00
if [ "$DISABLE_ES" = "true" ]; then
export VIM_Es=""
else
export VIM_Es="-Es"
fi
2021-02-17 23:40:31 +08:00
export PATH="/home/runner/.local/bin:${PATH}"
2021-02-16 22:40:12 +08:00
echo "\$PATH: \"${PATH}\""
echo "\$VIM: \"${VIM}\""
echo "================= ${VIM_BIN} version ======================"
$VIM_BIN --version
2021-02-17 23:31:35 +08:00
pip3 install --upgrade "pip < 21.0"
2021-02-17 23:25:03 +08:00
pip3 install covimerage virtualenv codecov
2021-02-16 22:40:12 +08:00
make test_coverage
2021-02-21 16:24:10 +08:00
covimerage -vv xml --omit 'build/*' --omit 'bundle/*'
2021-02-16 22:40:12 +08:00
codecov -X search gcov pycov -f coverage.xml
2021-08-21 13:21:11 +08:00
Windows:
strategy:
fail-fast: false
matrix:
include:
- vimbin: vim
vimtag: nightly
- vimbin: vim
2022-04-03 22:50:58 +08:00
vimtag: v7.4.1185
2021-08-21 13:21:11 +08:00
- vimbin: vim
vimtag: v7.4.1689
- vimbin: vim
vimtag: v8.0.0027
- vimbin: vim
vimtag: v8.0.1453
- vimbin: vim
vimtag: v8.1.2269
2022-04-02 12:11:41 +08:00
- vimbin: vim
vimtag: v8.2.2434
- vimbin: vim
vimtag: v8.2.3995
- vimbin: nvim
vimtag: v0.6.1
- vimbin: nvim
vimtag: v0.6.0
- vimbin: nvim
vimtag: v0.5.1
2021-08-21 13:21:11 +08:00
- vimbin: nvim
vimtag: v0.5.0
- vimbin: nvim
vimtag: v0.4.4
- vimbin: nvim
vimtag: v0.4.3
- vimbin: nvim
vimtag: v0.4.2
- vimbin: nvim
vimtag: v0.3.8
runs-on: windows-latest
2021-08-21 13:21:11 +08:00
env:
VIM_BIN: ${{ matrix.vimbin }}
VIM_TAG: ${{ matrix.vimtag }}
DEPS: C:\deps
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install ${{ matrix.vimbin }} ${{ matrix.vimtag }}
run: |
.ci/install/windows.ps1 $VIM_BIN $VIM_TAG
- name: Run test
run: |
if ($Env:VIM_BIN.StartsWith("nvim"))
{
$Env:PATH = $Env:DEPS + '\Neovim\bin\;' + $Env:PATH
$Env:VIM = $Env:DEPS + '\Neovim\share\nvim'
}
elseif ($Env:VIM_BIN.StartsWith("vim"))
{
$Env:PATH = $Env:DEPS + '\vim\vim82\;' + $Env:PATH
$Env:VIM = $Env:DEPS + '\vim'
}
# https://github.com/Vimjas/covimerage/issues/95
# https://github.com/Vimjas/covimerage/issues/90
# covimerage do not support windows now
make test