Fix checks for autocommand support #20
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: "test status" | |
on: | |
- "push" | |
jobs: | |
test: | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
include: | |
- vim_type: "vim" | |
vim_version: "v8.0.1850" | |
- vim_type: "vim" | |
vim_version: "head" | |
- vim_type: "neovim" | |
vim_version: "head" | |
steps: | |
- name: "checkout" | |
uses: "actions/checkout@v3" | |
with: | |
fetch-depth: 1 | |
- id: "vim" | |
name: "install ${{ matrix.vim_type }}" | |
uses: "thinca/action-setup-vim@v1" | |
with: | |
vim_version: "${{ matrix.vim_version }}" | |
vim_type: "${{ matrix.vim_type }}" | |
download: "available" | |
- name: "install ruby" | |
uses: "ruby/setup-ruby@v1" | |
with: | |
ruby-version: "3.0" | |
bundler-cache: true | |
- name: "run tests" | |
env: | |
VSPEC_VIM: "${{ steps.vim.outputs.executable }}" | |
run: "bundle exec vim-flavor test" | |
lint: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "checkout" | |
uses: "actions/checkout@v3" | |
- uses: "actions/setup-python@v4" | |
with: | |
python-version: "3.x" | |
- name: "run vint" | |
run: | | |
sudo python3 -m pip install vim-vint | |
rm -rf t/ | |
vint --color plugin autoload legacy |