1
0
mirror of https://github.com/amix/vimrc synced 2025-07-27 15:04:59 +08:00

Update mru.vim.

This commit is contained in:
Kurtis Moxley
2022-05-19 23:12:17 +08:00
parent 85e39a618a
commit 2538a00dff
12 changed files with 3365 additions and 990 deletions

View File

@ -0,0 +1,39 @@
name: coverage
on: [push, pull_request]
jobs:
linux:
name: linux
runs-on: ubuntu-18.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Run Tests
run: |
uname -a
export MRU_PROFILE=1
export VIMPRG=vim
$VIMPRG --version
cd ./test
./run_mru_tests.sh
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: 3.5
- name: Install covimerage
run: |
pip install covimerage
covimerage --version
- name: Run covimerage
run: |
cd ./test
covimerage write_coverage mru_profile.txt
- name: Take coverage
run: |
cd ./test
coverage report
coverage xml
- name: Upload coverage to codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./test/coverage.xml

View File

@ -0,0 +1,66 @@
name: unit-tests
on: [push, pull_request]
jobs:
linux:
name: linux
runs-on: ubuntu-latest
strategy:
matrix:
vim:
- nightly
- v8.2.0000
- v8.1.0000
- v8.0.0000
- v7.4
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Vim
uses: rhysd/action-setup-vim@v1
id: vim
with:
version: ${{ matrix.vim }}
- name: Run Tests
run: |
uname -a
export VIMPRG=${{ steps.vim.outputs.executable }}
$VIMPRG --version
cd test
./run_mru_tests.sh
windows:
name: windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Download Vim
shell: PowerShell
run: Invoke-WebRequest -Uri https://github.com/vim/vim-win32-installer/releases/download/v8.2.2488/gvim_8.2.2488_x64.zip -OutFile vim.zip
- name: Extract vim
shell: PowerShell
run: Expand-Archive -Path vim.zip -DestinationPath $env:USERPROFILE
- name: Run Tests
run: |
$env:PATH = $env:PATH + ';' + $env:USERPROFILE + '\vim\vim82'
Get-ComputerInfo -Property Windows*
vim --version
cd test
.\run_mru_tests.cmd
neovim-linux:
name: neovim-linux
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Neovim
uses: rhysd/action-setup-vim@v1
id: vim
with:
version: stable
neovim: true
- name: Run Tests
run: |
uname -a
export VIMPRG=${{ steps.vim.outputs.executable }}
$VIMPRG --version
cd test
./run_mru_tests.sh