-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (82 loc) · 2.65 KB
/
ci.yml
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
87
88
89
90
91
92
93
94
95
96
97
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
tags:
- v*
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: vint
uses: reviewdog/action-vint@v1
with:
github_token: ${{ secrets.github_token }}
level: info
reporter: github-pr-review
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
path: "."
pattern: "*.sh"
exclude: "./.git/*"
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: ['16']
os: [ubuntu-latest, macOS-latest]
neovim: [true, false]
vim_version: [stable, nightly]
fail-fast: false
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: remove microsoft repo
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
- name: setup vim, neovim = ${{ matrix.neovim }}, version = ${{ matrix.vim_version }}
id: vim
uses: rhysd/action-setup-vim@v1
with:
neovim: ${{ matrix.neovim }}
version: ${{ matrix.vim_version }}
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: install pynvim
run: |
python -m pip install --upgrade pip
pip install --upgrade pynvim msgpack
- name: setup node ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- name: install node modules
run: |
npm install -g neovim yarn
- name: test vim
timeout-minutes: 30
if: ${{ matrix.neovim == false }}
run: |
git clean -dfx
- name: test neovim
timeout-minutes: 30
if: ${{ matrix.neovim == true }}
run: |
git clean -dfx
nvim --headless -u init.vim -c 'checkhealth' -c 'set buftype=' -c 'saveas! checkhealth.info' -c 'qa!'
cat checkhealth.info