-
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.
Migrate tests to GitHub actions (#2)
* TST: Fix isk restoration * TST: Make _analyse_parameter resilient to &isk * BUG: Make lh#dev#type resilient to &isk * CONF: Rename vim-flavor file * CI: Update dependencies * CI: Remove vimrunner * DOC: Update README badges
- Loading branch information
1 parent
8bffd56
commit 99682f9
Showing
12 changed files
with
267 additions
and
223 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,58 @@ | ||
# 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, 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 |
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/lh-vim-lib', '>= 5.3.3' | ||
flavor 'LucHermitte/lh-tags', '>= 3.0.7' |
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
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
Oops, something went wrong.