Skip to content

Commit ac45557

Browse files
ci: update main workflow
1 parent 59c5392 commit ac45557

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

.github/workflows/main.yml

+17-19
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- test/**
1010
- bindings/**
1111
- binding.gyp
12+
- .github/workflows/*
1213
pull_request:
1314
branches: [master]
1415
paths:
@@ -17,6 +18,7 @@ on:
1718
- test/**
1819
- bindings/**
1920
- binding.gyp
21+
- .github/workflows/*
2022

2123
concurrency:
2224
group: ${{github.workflow}}-${{github.ref}}
@@ -29,60 +31,58 @@ jobs:
2931
strategy:
3032
fail-fast: false
3133
matrix:
32-
os: [ubuntu-latest, windows-latest, macos-14]
34+
os: [ubuntu-latest, windows-latest, macos-latest]
3335
steps:
34-
- name: Set up repository
35-
uses: tree-sitter/[email protected]
36-
with:
37-
node-version: 20
36+
- name: Clone repository
37+
uses: actions/checkout@v4
3838
- name: Clone nvim help files
3939
uses: actions/checkout@v4
4040
with:
4141
repository: neovim/neovim
4242
path: examples/neovim
4343
sparse-checkout: runtime/doc/
44-
- name: Run tests
44+
- name: Set up tree-sitter
45+
uses: tree-sitter/setup-action/cli@v1
46+
- name: Run parser tests
4547
uses: tree-sitter/parser-test-action@v2
4648
with:
47-
test-library: ${{runner.os == 'Linux'}}
48-
corpus-files: |-
49+
test-rust: ${{runner.os == 'Linux'}}
50+
- name: Parse sample files
51+
uses: tree-sitter/parse-action@v4
52+
if: runner.os != 'Windows'
53+
with:
54+
files: |-
4955
examples/neovim/runtime/doc/*
50-
# FIXME: these files should not have errors
56+
!examples/neovim/runtime/doc/remote_plugin.txt
57+
# FIXME: these should not have errors
5158
invalid-files: |-
5259
examples/neovim/runtime/doc/builtin.txt
5360
examples/neovim/runtime/doc/change.txt
5461
examples/neovim/runtime/doc/cmdline.txt
5562
examples/neovim/runtime/doc/dev_style.txt
5663
examples/neovim/runtime/doc/dev_tools.txt
5764
examples/neovim/runtime/doc/develop.txt
58-
examples/neovim/runtime/doc/diagnostic.txt
5965
examples/neovim/runtime/doc/editing.txt
6066
examples/neovim/runtime/doc/eval.txt
61-
examples/neovim/runtime/doc/faq.txt
6267
examples/neovim/runtime/doc/fold.txt
6368
examples/neovim/runtime/doc/ft_ada.txt
69+
examples/neovim/runtime/doc/ft_hare.txt
6470
examples/neovim/runtime/doc/ft_ps1.txt
65-
examples/neovim/runtime/doc/ft_sql.txt
66-
examples/neovim/runtime/doc/help.txt
6771
examples/neovim/runtime/doc/helphelp.txt
6872
examples/neovim/runtime/doc/if_perl.txt
6973
examples/neovim/runtime/doc/if_pyth.txt
7074
examples/neovim/runtime/doc/if_ruby.txt
71-
examples/neovim/runtime/doc/indent.txt
7275
examples/neovim/runtime/doc/index.txt
7376
examples/neovim/runtime/doc/intro.txt
7477
examples/neovim/runtime/doc/job_control.txt
75-
examples/neovim/runtime/doc/lsp.txt
7678
examples/neovim/runtime/doc/luaref.txt
7779
examples/neovim/runtime/doc/map.txt
7880
examples/neovim/runtime/doc/mbyte.txt
7981
examples/neovim/runtime/doc/motion.txt
80-
examples/neovim/runtime/doc/news.txt
8182
examples/neovim/runtime/doc/nvim.txt
8283
examples/neovim/runtime/doc/options.txt
8384
examples/neovim/runtime/doc/pattern.txt
8485
examples/neovim/runtime/doc/pi_gzip.txt
85-
examples/neovim/runtime/doc/pi_health.txt
8686
examples/neovim/runtime/doc/pi_msgpack.txt
8787
examples/neovim/runtime/doc/pi_netrw.txt
8888
examples/neovim/runtime/doc/pi_paren.txt
@@ -92,7 +92,6 @@ jobs:
9292
examples/neovim/runtime/doc/provider.txt
9393
examples/neovim/runtime/doc/quickfix.txt
9494
examples/neovim/runtime/doc/quickref.txt
95-
examples/neovim/runtime/doc/remote_plugin.txt
9695
examples/neovim/runtime/doc/repeat.txt
9796
examples/neovim/runtime/doc/russian.txt
9897
examples/neovim/runtime/doc/starting.txt
@@ -107,7 +106,6 @@ jobs:
107106
examples/neovim/runtime/doc/usr_12.txt
108107
examples/neovim/runtime/doc/usr_22.txt
109108
examples/neovim/runtime/doc/usr_28.txt
110-
examples/neovim/runtime/doc/usr_29.txt
111109
examples/neovim/runtime/doc/usr_41.txt
112110
examples/neovim/runtime/doc/various.txt
113111
examples/neovim/runtime/doc/vim_diff.txt

0 commit comments

Comments
 (0)