mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-11 16:00:02 -04:00
ci: add injection tests
This commit is contained in:
parent
c3f73e4b63
commit
a3862c9802
2 changed files with 95 additions and 0 deletions
32
tests/query/injections/yaml/bash-on-github-actions.yml
Normal file
32
tests/query/injections/yaml/bash-on-github-actions.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '16'
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
# ^ bash
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
# ^ bash
|
||||
- name: Parse Petalisp
|
||||
run: |
|
||||
git submodule init
|
||||
git submodule update
|
||||
if (( $(node_modules/tree-sitter-cli/tree-sitter parse test/Petalisp/**/*.lisp -q | wc -l) > 2 )); then # There are 2 known failures (strings that are not format strings but use ~X syntax)
|
||||
exit 1
|
||||
else
|
||||
echo "Successfully parsed Petalisp"
|
||||
fi
|
||||
# ^ bash
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
Loading…
Add table
Add a link
Reference in a new issue