File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 branches : ['master']
55 pull_request :
66 branches : ['master']
7+ workflow_dispatch :
78permissions :
89 contents : read
910
4243 id : toolchain
4344 - run : cargo test
4445
46+ corpus :
47+ name : Corpus test
48+ runs-on : ubuntu-latest
49+ timeout-minutes : 10
50+ steps :
51+ - uses : actions/checkout@v4
52+ - uses : dtolnay/rust-toolchain@1.86.0
53+ id : toolchain
54+ - run : |
55+ cargo build
56+ echo ${{ github.workspace }}/target/debug >> $GITHUB_PATH
57+
58+ - name : Clone nvim-treesitter runtime corpus
59+ uses : actions/checkout@v4
60+ with :
61+ repository : nvim-treesitter/nvim-treesitter
62+ ref : main
63+ path : .tests/nvim-treesitter
64+ sparse-checkout : runtime/queries
65+
66+ - name : Check corpus
67+ run : |
68+ cd .tests/nvim-treesitter
69+ ts_query_ls check runtime/queries
70+
71+ - name : Format corpus
72+ run : |
73+ cd .tests/nvim-treesitter
74+ ts_query_ls format runtime/queries
75+
4576 generate-schema :
4677 name : Generate schema
4778 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments