-
Notifications
You must be signed in to change notification settings - Fork 9
118 lines (113 loc) · 3.39 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: CI
on: [push, pull_request]
jobs:
stable-and-nightly:
name: Stable and nightly
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [stable, nightly]
neovim: [true, false]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- run: npm ci
- run: npm run build
- uses: ./
with:
version: ${{ matrix.version }}
neovim: ${{ matrix.neovim }}
id: vim
- name: Validate action result
run: node ./scripts/post_action_check.js "${{ matrix.neovim }}" "${{ matrix.version }}" "${{ steps.vim.outputs.executable }}"
# separate from stable-and-nightly since jobs.{id}.name.strategy.matrix.exclude seems not working
vim-v8_2_1931:
name: Vim v8.2.1931
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- run: npm ci
- run: npm run build
- uses: ./
with:
version: v8.2.1931
id: vim
- name: Validate action result
run: node ./scripts/post_action_check.js "false" "v8.2.1931" "${{ steps.vim.outputs.executable }}"
nvim-v0_4_4:
name: Neovim v0.4.4
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- run: npm ci
- run: npm run build
- uses: ./
with:
neovim: true
version: v0.4.4
id: neovim
- name: Validate action result
run: node ./scripts/post_action_check.js "true" "v0.4.4" "${{ steps.neovim.outputs.executable }}"
# See #10 for more details. Vim older than 8.2.1119 cannot be built with Xcode 12 or later.
vim-v8_1_2424-mac:
name: Vim v8.1.2424 on macOS
runs-on: macos-11
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- run: npm ci
- run: npm run build
- uses: ./
with:
version: v8.1.2424
configure-args: |
--with-features=huge --enable-fail-if-missing --disable-nls
id: vim
- name: Validate action result
run: node ./scripts/post_action_check.js "false" "v8.1.2424" "${{ steps.vim.outputs.executable }}"
test-and-lint:
name: Check unit tests and linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- run: npm ci
- name: Run unit tests
run: npm test
env:
GITHUB_TOKEN: ${{ github.token }}
- run: npm run lint
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install yamllint
- run: yamllint --strict .github/workflows
- name: Check workflow files
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color