Skip to content

Commit 4c5a80e

Browse files
committed
ci: update test workflow, add release
1 parent 2694c3d commit 4c5a80e

File tree

2 files changed

+40
-88
lines changed

2 files changed

+40
-88
lines changed

.github/workflows/main.yml

+19-88
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,9 @@ name: CI
33
on:
44
push:
55
branches: [master]
6-
paths:
7-
- grammar.js
8-
- src/**
9-
- test/**
10-
- bindings/**
11-
- binding.gyp
126
pull_request:
137
branches: [master]
14-
paths:
15-
- grammar.js
16-
- src/**
17-
- test/**
18-
- bindings/**
19-
- binding.gyp
8+
workflow_dispatch:
209

2110
concurrency:
2211
group: ${{github.workflow}}-${{github.ref}}
@@ -29,87 +18,29 @@ jobs:
2918
strategy:
3019
fail-fast: false
3120
matrix:
32-
os: [ubuntu-latest, windows-latest, macos-14]
21+
os: [ubuntu-latest, macos-latest]
3322
steps:
3423
- name: Set up repository
35-
uses: tree-sitter/[email protected]
24+
uses: actions/checkout@v4
25+
26+
- name: Set up tree-sitter
27+
uses: tree-sitter/setup-action@v2
3628
with:
37-
node-version: 20
38-
- name: Clone nvim help files
29+
install-lib: false
30+
31+
- name: Run tests
32+
uses: tree-sitter/parser-test-action@v2
33+
34+
- name: Clone neovim runtime corpus
3935
uses: actions/checkout@v4
4036
with:
4137
repository: neovim/neovim
42-
path: examples/neovim
38+
path: .tests/neovim
4339
sparse-checkout: runtime/doc/
44-
- name: Run tests
45-
uses: tree-sitter/parser-test-action@v2
40+
41+
- name: Parse corpus
42+
uses: tree-sitter/parse-action@v4
4643
with:
47-
test-library: ${{runner.os == 'Linux'}}
48-
corpus-files: |-
49-
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
44+
files: |-
45+
.tests/neovim/runtime/doc/*.txt
46+
!.tests/neovim/runtime/doc/usr_41.txt

.github/workflows/release.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Create release
2+
3+
on:
4+
push:
5+
tags: ["*"]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{github.workflow}}-${{github.ref}}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: write
14+
id-token: write
15+
attestations: write
16+
17+
jobs:
18+
release:
19+
uses: tree-sitter/workflows/.github/workflows/release.yml@main
20+
with:
21+
attestations: true

0 commit comments

Comments
 (0)