Update README.md #1367
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
env: | |
plenary-git: https://github.com/nvim-lua/plenary.nvim | |
plenary-path: ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim | |
runtime: ~/.local/share/nvim/site/pack/vendor/start | |
jobs: | |
x64: | |
name: x64 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-18.04, ubuntu-20.04] | |
include: | |
- os: ubuntu-18.04 | |
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz | |
manager: sudo apt-get | |
packages: sqlite3 libsqlite3-dev | |
- os: ubuntu-20.04 | |
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz | |
manager: sudo apt-get | |
packages: sqlite3 libsqlite3-dev | |
- os: macos-10.15 | |
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz | |
steps: | |
- uses: actions/checkout@v2 | |
- run: date +%F > todays-date | |
- name: Restore cache for today's nightly. | |
uses: actions/cache@v2 | |
with: | |
path: | | |
_neovim | |
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }} | |
- name: Packages | |
if: ${{ matrix.packages }} | |
run: ${{ matrix.manager }} install ${{ matrix.packages }} | |
- name: Prepare | |
run: | | |
mkdir -p ${{ env.runtime }} | |
test -d _neovim || { | |
mkdir -p _neovim | |
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim" | |
} | |
git clone --depth 1 ${{ env.plenary-git }} ${{ env.plenary-path }} | |
ln -s $(pwd) ${{ env.runtime }} | |
- name: Run tests | |
run: | | |
export PATH="${PWD}/_neovim/bin:${PATH}" | |
export VIM="${PWD}/_neovim/share/nvim/runtime" | |
nvim --version | |
make test |