-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
neovim-version: ["stable", "nightly"] | ||
lua-version: ["5.1", "5.4"] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Lua | ||
uses: leafo/gh-actions-lua@v9 | ||
with: | ||
luaVersion: ${{ matrix.lua-version }} | ||
|
||
- name: Install luacheck | ||
run: luarocks install --local luacheck | ||
|
||
- name: Run luacheck | ||
run: | | ||
~/.luarocks/bin/luacheck lua | ||
- name: Set up Neovim | ||
uses: rhysd/action-setup-vim@v2 | ||
with: | ||
neovim: ${{ matrix.neovim-version }} | ||
|
||
- name: Install Dependencies | ||
run: | | ||
nvim --headless +'!mkdir -p ~/.local/share/nvim/site/pack/plugins/start' +qall | ||
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim \ | ||
~/.local/share/nvim/site/pack/plugins/start/plenary.nvim | ||
- name: Run Tests | ||
run: | | ||
nvim --headless \ | ||
-u tests/minimal_init.vim \ | ||
-c "PlenaryBustedDirectory tests/ { minimal_init = './tests/minimal_init.vim' }" |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
" tests/minimal_init.vim | ||
|
||
set runtimepath+=. | ||
set runtimepath+=~/.local/share/nvim/site/pack/plugins/start/plenary.nvim | ||
|
||
" Load your plugin | ||
runtime plugin/colorful-times.lua |