generated from skanehira/denops-template.vim
-
Notifications
You must be signed in to change notification settings - Fork 2
86 lines (86 loc) · 2.36 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: ci
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
pull_request:
paths-ignore:
- 'README.md'
jobs:
lint:
strategy:
matrix:
deno-version: [v1.x]
os: [ubuntu-latest, windows-latest, macos-latest]
name: deno lint
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@main
with:
deno-version: ${{ matrix.deno-version }}
- name: run lint
run: deno lint
test:
strategy:
matrix:
runner:
- windows-latest
- macos-latest
- ubuntu-latest
version:
- "1.x"
host_version:
- vim: "v9.0.0472"
nvim: "v0.8.0"
runs-on: ${{ matrix.runner }}
steps:
- run: git config --global core.autocrlf false
if: runner.os == 'Windows'
- uses: actions/checkout@v3
with:
path: "./repo"
- uses: actions/checkout@v3
with:
repository: "vim-denops/denops.vim"
path: "./denops.vim"
- uses: denoland/setup-deno@main
with:
deno-version: "${{ matrix.version }}"
- uses: thinca/action-setup-vim@v1
id: vim
with:
vim_type: "Vim"
vim_version: "${{ matrix.host_version.vim }}"
download: "never"
- name: Check Vim
run: |
echo ${DENOPS_TEST_VIM_EXECUTABLE}
env:
DENOPS_TEST_VIM_EXECUTABLE: ${{ steps.vim.outputs.executable_path }}
- uses: thinca/action-setup-vim@v1
id: nvim
with:
vim_type: "Neovim"
vim_version: "${{ matrix.host_version.nvim }}"
- name: Check Neovim
run: |
echo ${DENOPS_TEST_NVIM_EXECUTABLE}
env:
DENOPS_TEST_NVIM_EXECUTABLE: ${{ steps.nvim.outputs.executable_path }}
- name: Setup themis
id: themis
run: |
git clone https://github.com/thinca/vim-themis $HOME/vim-themis
echo "$HOME/vim-themis/bin" >> $GITHUB_PATH
- name: Test
run: |
make test
env:
DENOPS_TEST_DENOPS_PATH: "../denops.vim"
DENOPS_TEST_VIM_EXECUTABLE: ${{ steps.vim.outputs.executable_path }}
DENOPS_TEST_NVIM_EXECUTABLE: ${{ steps.nvim.outputs.executable_path }}
timeout-minutes: 3
working-directory: ./repo