Skip to content

Commit 6ac86a3

Browse files
ci: update main workflow
1 parent 2249c44 commit 6ac86a3

File tree

1 file changed

+19
-73
lines changed

1 file changed

+19
-73
lines changed

.github/workflows/main.yml

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

2123
concurrency:
2224
group: ${{github.workflow}}-${{github.ref}}
@@ -31,85 +33,29 @@ jobs:
3133
matrix:
3234
os: [ubuntu-latest, windows-latest, macos-14]
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+
id: parse-files
53+
with:
54+
files: |-
4955
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

Comments
 (0)