9
9
- test/**
10
10
- bindings/**
11
11
- binding.gyp
12
+ - .github/workflows/main.yml
12
13
pull_request :
13
14
branches : [master]
14
15
paths :
17
18
- test/**
18
19
- bindings/**
19
20
- binding.gyp
21
+ - .github/workflows/main.yml
20
22
21
23
concurrency :
22
24
group : ${{github.workflow}}-${{github.ref}}
@@ -31,85 +33,29 @@ jobs:
31
33
matrix :
32
34
os : [ubuntu-latest, windows-latest, macos-14]
33
35
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
38
38
- name : Clone nvim help files
39
39
uses : actions/checkout@v4
40
40
with :
41
41
repository : neovim/neovim
42
42
path : examples/neovim
43
43
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
45
47
uses : tree-sitter/parser-test-action@v2
46
48
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
+ id : parse-files
53
+ with :
54
+ files : |-
49
55
examples/neovim/runtime/doc/*
50
- # FIXME: these files should not have errors
51
- invalid-files : |-
52
- examples/neovim/runtime/doc/builtin.txt
53
- examples/neovim/runtime/doc/change.txt
54
- examples/neovim/runtime/doc/cmdline.txt
55
- examples/neovim/runtime/doc/dev_style.txt
56
- examples/neovim/runtime/doc/dev_tools.txt
57
- examples/neovim/runtime/doc/develop.txt
58
- examples/neovim/runtime/doc/diagnostic.txt
59
- examples/neovim/runtime/doc/editing.txt
60
- examples/neovim/runtime/doc/eval.txt
61
- examples/neovim/runtime/doc/faq.txt
62
- examples/neovim/runtime/doc/fold.txt
63
- examples/neovim/runtime/doc/ft_ada.txt
64
- examples/neovim/runtime/doc/ft_ps1.txt
65
- examples/neovim/runtime/doc/ft_sql.txt
66
- examples/neovim/runtime/doc/help.txt
67
- examples/neovim/runtime/doc/helphelp.txt
68
- examples/neovim/runtime/doc/if_perl.txt
69
- examples/neovim/runtime/doc/if_pyth.txt
70
- examples/neovim/runtime/doc/if_ruby.txt
71
- examples/neovim/runtime/doc/indent.txt
72
- examples/neovim/runtime/doc/index.txt
73
- examples/neovim/runtime/doc/intro.txt
74
- examples/neovim/runtime/doc/job_control.txt
75
- examples/neovim/runtime/doc/lsp.txt
76
- examples/neovim/runtime/doc/luaref.txt
77
- examples/neovim/runtime/doc/map.txt
78
- examples/neovim/runtime/doc/mbyte.txt
79
- examples/neovim/runtime/doc/motion.txt
80
- examples/neovim/runtime/doc/news.txt
81
- examples/neovim/runtime/doc/nvim.txt
82
- examples/neovim/runtime/doc/options.txt
83
- examples/neovim/runtime/doc/pattern.txt
84
- examples/neovim/runtime/doc/pi_gzip.txt
85
- examples/neovim/runtime/doc/pi_health.txt
86
- examples/neovim/runtime/doc/pi_msgpack.txt
87
- examples/neovim/runtime/doc/pi_netrw.txt
88
- examples/neovim/runtime/doc/pi_paren.txt
89
- examples/neovim/runtime/doc/pi_tar.txt
90
- examples/neovim/runtime/doc/pi_tutor.txt
91
- examples/neovim/runtime/doc/pi_zip.txt
92
- examples/neovim/runtime/doc/provider.txt
93
- examples/neovim/runtime/doc/quickfix.txt
94
- examples/neovim/runtime/doc/quickref.txt
95
- examples/neovim/runtime/doc/remote_plugin.txt
96
- examples/neovim/runtime/doc/repeat.txt
97
- examples/neovim/runtime/doc/russian.txt
98
- examples/neovim/runtime/doc/starting.txt
99
- examples/neovim/runtime/doc/syntax.txt
100
- examples/neovim/runtime/doc/tabpage.txt
101
- examples/neovim/runtime/doc/tips.txt
102
- examples/neovim/runtime/doc/ui.txt
103
- examples/neovim/runtime/doc/usr_02.txt
104
- examples/neovim/runtime/doc/usr_03.txt
105
- examples/neovim/runtime/doc/usr_07.txt
106
- examples/neovim/runtime/doc/usr_11.txt
107
- examples/neovim/runtime/doc/usr_12.txt
108
- examples/neovim/runtime/doc/usr_22.txt
109
- examples/neovim/runtime/doc/usr_28.txt
110
- examples/neovim/runtime/doc/usr_29.txt
111
- examples/neovim/runtime/doc/usr_41.txt
112
- examples/neovim/runtime/doc/various.txt
113
- examples/neovim/runtime/doc/vim_diff.txt
114
- examples/neovim/runtime/doc/visual.txt
115
- examples/neovim/runtime/doc/windows.txt
56
+ - name : Upload failures artifact
57
+ uses : actions/upload-artifact@v4
58
+ if : " !cancelled() && steps.parse-files.outcome == 'failure'"
59
+ with :
60
+ name : failures-${{runner.os}}
61
+ path : ${{steps.parse-files.outputs.failures}}
0 commit comments