Skip to content

Commit 81cb33b

Browse files
ci: update main workflow
1 parent 2249c44 commit 81cb33b

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/main.yml

+17-7
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,25 @@ jobs:
3131
matrix:
3232
os: [ubuntu-latest, windows-latest, macos-14]
3333
steps:
34-
- name: Set up repository
35-
uses: tree-sitter/[email protected]
36-
with:
37-
node-version: 20
34+
- name: Clone repository
35+
uses: actions/checkout@v4
3836
- name: Clone nvim help files
3937
uses: actions/checkout@v4
4038
with:
4139
repository: neovim/neovim
4240
path: examples/neovim
4341
sparse-checkout: runtime/doc/
44-
- name: Run tests
42+
- name: Set up tree-sitter
43+
uses: tree-sitter/setup-action/cli@v1
44+
- name: Run parser tests
4545
uses: tree-sitter/parser-test-action@v2
4646
with:
47-
test-library: ${{runner.os == 'Linux'}}
48-
corpus-files: |-
47+
test-rust: ${{runner.os == 'Linux'}}
48+
- name: Parse sample files
49+
uses: tree-sitter/parse-action@v4
50+
id: parse-files
51+
with:
52+
files: |-
4953
examples/neovim/runtime/doc/*
5054
# FIXME: these files should not have errors
5155
invalid-files: |-
@@ -113,3 +117,9 @@ jobs:
113117
examples/neovim/runtime/doc/vim_diff.txt
114118
examples/neovim/runtime/doc/visual.txt
115119
examples/neovim/runtime/doc/windows.txt
120+
- name: Upload failures artifact
121+
uses: actions/upload-artifact@v4
122+
if: "!cancelled() && steps.parse-files.outcome == 'failure'"
123+
with:
124+
name: failures-${{runner.os}}
125+
path: ${{steps.parse-files.outputs.failures}}

0 commit comments

Comments
 (0)