2021-05-05 18:04:16 +00:00
|
|
|
name: Tests
|
|
|
|
|
2021-05-09 21:11:18 +00:00
|
|
|
on:
|
2021-05-05 18:04:16 +00:00
|
|
|
push:
|
2021-05-06 12:14:06 +00:00
|
|
|
branches: [master]
|
2021-05-05 18:04:16 +00:00
|
|
|
pull_request:
|
2022-02-01 08:00:36 +00:00
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
# Cancel any in-progress CI runs for a PR if it is updated
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-05-05 18:04:16 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-02-01 08:00:36 +00:00
|
|
|
tests:
|
|
|
|
name: ${{ matrix.os }} ${{ matrix.flavor }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- flavor: nvim-0.5
|
|
|
|
runner: ubuntu-20.04
|
|
|
|
os: linux
|
|
|
|
nvim_version: v0.5.0
|
|
|
|
- flavor: nvim-0.6
|
|
|
|
runner: ubuntu-20.04
|
|
|
|
os: linux
|
|
|
|
nvim_version: v0.6.0
|
2022-07-12 06:10:33 +00:00
|
|
|
- flavor: nvim-0.7
|
|
|
|
runner: ubuntu-20.04
|
|
|
|
os: linux
|
|
|
|
nvim_version: v0.7.0
|
2022-10-06 04:15:16 +00:00
|
|
|
- flavor: nvim-0.8
|
|
|
|
runner: ubuntu-20.04
|
|
|
|
os: linux
|
|
|
|
nvim_version: v0.8.0
|
2022-02-01 08:00:36 +00:00
|
|
|
- flavor: nvim-nightly
|
|
|
|
runner: ubuntu-20.04
|
|
|
|
os: linux
|
|
|
|
nvim_version: nightly
|
|
|
|
runs-on: ${{ matrix.runner }}
|
|
|
|
timeout-minutes: 10
|
2021-05-05 18:04:16 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-09-04 05:41:04 +00:00
|
|
|
- name: Setup Test Environment
|
|
|
|
run: |
|
2022-02-01 08:00:36 +00:00
|
|
|
mkdir -p ./tmp_home/nvim/pack/vendor/start
|
|
|
|
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ./tmp_home/nvim/pack/vendor/start/plenary.nvim
|
|
|
|
git clone --depth 1 https://github.com/kyazdani42/nvim-web-devicons ./tmp_home/nvim/pack/vendor/start/nvim-web-devicons
|
|
|
|
ln -s $(pwd) ./tmp_home/nvim/pack/vendor/start
|
|
|
|
- name: Setup neovim ${{matrix.nvim_version}}
|
|
|
|
uses: rhysd/action-setup-vim@v1
|
2021-05-05 18:04:16 +00:00
|
|
|
with:
|
2022-02-01 08:00:36 +00:00
|
|
|
neovim: true
|
|
|
|
version: ${{matrix.nvim_version}}
|
|
|
|
- name: Run tests
|
2021-09-04 05:41:04 +00:00
|
|
|
run: |
|
2022-02-01 08:00:36 +00:00
|
|
|
make test
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup linters
|
2021-05-05 18:04:16 +00:00
|
|
|
run: |
|
2021-09-04 05:41:04 +00:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install luarocks
|
|
|
|
sudo luarocks install luacheck
|
2022-02-01 08:00:36 +00:00
|
|
|
- name: Run luacheck
|
|
|
|
run: |
|
2022-03-26 09:43:56 +00:00
|
|
|
make lint
|