-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate tests to GitHub actions (#32)
* Run tests through github actions * Update dependencies * DEP: Rename VimFlavor to Flavorfile * DOC: Add badges to doc * TST: Don't terminate vim surrounding w/ <++> Vim9 new vim indent script expect nothing after `endif`. `endif<++>` would be incorrectly indented. * Remove neovim from test matrix ...as vimrunner and neovim are not compatible
- Loading branch information
1 parent
e785249
commit b74734e
Showing
11 changed files
with
138 additions
and
30 deletions.
There are no files selected for viewing
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,59 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | ||
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
name: "test on ${{ matrix.os }} ; ${{ matrix.neovim && 'neovim' || 'vim' }}" | ||
|
||
strategy: | ||
matrix: | ||
# Testing doesn't seem to work on Windows: output log file | ||
# cannot be read... | ||
# os: [ubuntu-latest, macos-latest, windows-latest] | ||
os: [ubuntu-latest, macos-latest] | ||
neovim: [false] | ||
# neovim: [false, true] | ||
# TODO: Test different flavours of Vim... | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.0 | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Setup Vim | ||
uses: rhysd/action-setup-vim@v1 | ||
# uses: thinca/action-setup-vim@v2 | ||
id: vim | ||
with: | ||
neovim: ${{matrix.neovim }} | ||
configure-args: | | ||
--with-features=huge | ||
- name: Run tests on Linux | ||
if: runner.os == 'Linux' # headless execution is required on Linux | ||
run: | | ||
bundle list | ||
xvfb-run bundle exec rake ci | ||
- name: Run tests on ${{ matrix.os }} | ||
if: runner.os != 'Linux' | ||
run: | | ||
bundle exec rake ci |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rspec', '~> 3.9.0' | ||
gem 'vimrunner', '~> 0.3.4' | ||
gem 'rspec', '~> 3.13.0' | ||
gem 'vimrunner', '~> 0.3.5' | ||
gem 'rake', '~> 13.0.1' | ||
gem 'vim-flavor', '~> 2.2.2' | ||
gem 'vim-flavor', '~> 4.0.3' |
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 |
---|---|---|
@@ -1,4 +1,11 @@ | ||
# lh-brackets [![Last release](https://img.shields.io/github/tag/LucHermitte/lh-brackets.svg)](https://github.com/LucHermitte/lh-brackets/releases) [![Build Status](https://secure.travis-ci.org/LucHermitte/lh-brackets.png?branch=master)](http://travis-ci.org/LucHermitte/lh-brackets) [![Project Stats](https://www.openhub.net/p/21020/widgets/project_thin_badge.gif)](https://www.openhub.net/p/21020) | ||
# lh-brackets [![Last release][Releases-badge]][Releases-url] [![Build Status][gh-action-badge]][gh-action-result] [![Project Stats][openhub-badge]][openhub-url] | ||
|
||
[Releases-badge]: https://img.shields.io/github/tag/LucHermitte/lh-brackets.svg | ||
[Releases-url]: https://github.com/LucHermitte/lh-brackets/tags | ||
[gh-action-badge]: ./../../actions/workflows/tests.yml/badge.svg?branch=master "Test" | ||
[gh-action-result]: ./../../actions/workflows/tests.yml?query=branch%3Amaster | ||
[openhub-badge]: https://www.openhub.net/p/21020/widgets/project_thin_badge.gif | ||
[openhub-url]: https://www.openhub.net/p/21020 | ||
|
||
## Features | ||
|
||
|
@@ -111,27 +118,33 @@ As [lh-vim-lib](http://github.com/LucHermitte/lh-vim-lib), map-tools provides a | |
| `lh#map#eat_char()`, `:I(nore)abbr` | Permits to define abbreviations that do not insert a whitespace when the `<space>` key is used to trigger the abbreviation | | ||
| `lh#map#insert_seq()` | High level function that interprets `!.*!` mappings, and take the context into account | | ||
|
||
|
||
# Installation | ||
* Requirements: Vim 7.+ (7.4-849 in order to support redo), [lh-vim-lib](http://github.com/LucHermitte/lh-vim-lib) v5.3.0+, [lh-style](http://github.com/LucHermitte/lh-style) v1.0.0+ for unit testing. | ||
* With [vim-addon-manager](https://github.com/MarcWeber/vim-addon-manager), install lh-brackets (this is the preferred method because of the dependencies) | ||
```vim | ||
ActivateAddons lh-brackets | ||
``` | ||
|
||
```vim | ||
ActivateAddons lh-brackets | ||
``` | ||
* or with [vim-flavor](https://github.com/kana/vim-flavor) (which also support dependencies) | ||
``` | ||
flavor 'LucHermitte/lh-brackets' | ||
``` | ||
``` | ||
flavor 'LucHermitte/lh-brackets' | ||
``` | ||
* or you can clone the git repositories | ||
```bash | ||
git clone [email protected]:LucHermitte/lh-vim-lib.git | ||
git clone [email protected]:LucHermitte/lh-brackets.git | ||
``` | ||
```bash | ||
git clone [email protected]:LucHermitte/lh-vim-lib.git | ||
git clone [email protected]:LucHermitte/lh-brackets.git | ||
``` | ||
* or with Vundle/NeoBundle: | ||
```vim | ||
Bundle 'LucHermitte/lh-vim-lib' | ||
Bundle 'LucHermitte/lh-brackets' | ||
``` | ||
```vim | ||
Bundle 'LucHermitte/lh-vim-lib' | ||
Bundle 'LucHermitte/lh-brackets' | ||
``` | ||
## Credits | ||
* This bracketing system is actually a variation on [Stephen Riehm's original bracketing system](http://mywebpage.netscape.com/bbenjif/vim/Riehm/doc/) ; | ||
|
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
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
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,10 @@ | ||
" Special vimrc to used instead of vimrunner vimrc which disable all plugins | ||
" It should automatically load plugins installed as packages by vim-flavor | ||
set nocompatible | ||
|
||
filetype plugin on | ||
filetype indent on | ||
syntax on | ||
|
||
set noswapfile nobackup | ||
set loadplugins |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
" Code from lh-misc to test surrounding | ||
xnoremap <buffer> <silent> ,if | ||
\ <c-\><c-n>@=lh#map#surround('if !cursorhere!', 'endif!mark!', | ||
\ <c-\><c-n>@=lh#map#surround('if !cursorhere!', 'endif', | ||
\ 1, 1, '', 1, 'if ')<cr> |
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
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,2 @@ | ||
flavor 'LucHermitte/vim-UT', '>= 2.0.8' | ||
flavor 'LucHermitte/lh-style' |
This file was deleted.
Oops, something went wrong.