Skip to content

Commit 2ec18a2

Browse files
committed
ci: add GitHub Actions workflows for Vim, Neovim, and reviewdog
1 parent 5bcad1e commit 2ec18a2

3 files changed

Lines changed: 94 additions & 0 deletions

File tree

.github/workflows/neovim.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Neovim
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os:
16+
- macos-latest
17+
- ubuntu-latest
18+
version:
19+
- stable
20+
- nightly
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v4
25+
with:
26+
repository: thinca/vim-themis
27+
path: vim-themis
28+
- uses: rhysd/action-setup-vim@v1
29+
id: nvim
30+
with:
31+
neovim: true
32+
version: "${{ matrix.version }}"
33+
- name: Run tests
34+
env:
35+
THEMIS_VIM: ${{ steps.nvim.outputs.executable }}
36+
run: |
37+
./vim-themis/bin/themis

.github/workflows/reviewdog.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: reviewdog
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
vimlint:
12+
name: runner / vint
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: vint
17+
uses: reviewdog/action-vint@v1
18+
with:
19+
github_token: ${{ secrets.github_token }}
20+
level: error
21+
reporter: github-pr-review

.github/workflows/vim.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Vim
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os:
16+
- macos-latest
17+
- ubuntu-latest
18+
version:
19+
- nightly
20+
- v9.0.0000
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v4
25+
with:
26+
repository: thinca/vim-themis
27+
path: vim-themis
28+
- uses: rhysd/action-setup-vim@v1
29+
id: vim
30+
with:
31+
version: "${{ matrix.version }}"
32+
- name: Run tests
33+
env:
34+
THEMIS_VIM: ${{ steps.vim.outputs.executable }}
35+
run: |
36+
./vim-themis/bin/themis

0 commit comments

Comments
 (0)