Skip to content

Commit e157dd0

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

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

.github/workflows/main.yml

+16-18
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,57 @@ 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+
# FIXME: these should not have errors
5157
invalid-files: |-
5258
examples/neovim/runtime/doc/builtin.txt
5359
examples/neovim/runtime/doc/change.txt
5460
examples/neovim/runtime/doc/cmdline.txt
5561
examples/neovim/runtime/doc/dev_style.txt
5662
examples/neovim/runtime/doc/dev_tools.txt
5763
examples/neovim/runtime/doc/develop.txt
58-
examples/neovim/runtime/doc/diagnostic.txt
5964
examples/neovim/runtime/doc/editing.txt
6065
examples/neovim/runtime/doc/eval.txt
61-
examples/neovim/runtime/doc/faq.txt
6266
examples/neovim/runtime/doc/fold.txt
6367
examples/neovim/runtime/doc/ft_ada.txt
68+
examples/neovim/runtime/doc/ft_hare.txt
6469
examples/neovim/runtime/doc/ft_ps1.txt
65-
examples/neovim/runtime/doc/ft_sql.txt
66-
examples/neovim/runtime/doc/help.txt
6770
examples/neovim/runtime/doc/helphelp.txt
6871
examples/neovim/runtime/doc/if_perl.txt
6972
examples/neovim/runtime/doc/if_pyth.txt
7073
examples/neovim/runtime/doc/if_ruby.txt
71-
examples/neovim/runtime/doc/indent.txt
7274
examples/neovim/runtime/doc/index.txt
7375
examples/neovim/runtime/doc/intro.txt
7476
examples/neovim/runtime/doc/job_control.txt
75-
examples/neovim/runtime/doc/lsp.txt
7677
examples/neovim/runtime/doc/luaref.txt
7778
examples/neovim/runtime/doc/map.txt
7879
examples/neovim/runtime/doc/mbyte.txt
7980
examples/neovim/runtime/doc/motion.txt
80-
examples/neovim/runtime/doc/news.txt
8181
examples/neovim/runtime/doc/nvim.txt
8282
examples/neovim/runtime/doc/options.txt
8383
examples/neovim/runtime/doc/pattern.txt
8484
examples/neovim/runtime/doc/pi_gzip.txt
85-
examples/neovim/runtime/doc/pi_health.txt
8685
examples/neovim/runtime/doc/pi_msgpack.txt
8786
examples/neovim/runtime/doc/pi_netrw.txt
8887
examples/neovim/runtime/doc/pi_paren.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)