Add CI tests for parsing Petalisp

pull/70/head
Stephan Seitz 2021-11-27 12:44:37 +07:00
parent b506e326cd
commit b455a59859
3 changed files with 15 additions and 0 deletions

@ -16,3 +16,14 @@ jobs:
run: npm ci
- name: Run tests
run: npm test
- 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
- name: Run tests
run: npm test

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "test/Petalisp"]
path = test/Petalisp
url = https://github.com/marcoheisig/Petalisp.git

@ -0,0 +1 @@
Subproject commit 3b6cb42933f7f4b2d63b2d48c0d92c19a6b701b8