-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
121 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,27 @@ jobs: | |
uses: tree-sitter/[email protected] | ||
- name: Run tests | ||
uses: tree-sitter/[email protected] | ||
with: | ||
test-library: ${{runner.os == 'Linux'}} | ||
|
||
parse-examples: | ||
name: Parse examples | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- name: Set up tree-sitter | ||
uses: tree-sitter/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
submodules: true | ||
- name: Parse examples | ||
uses: tree-sitter/parse-action@3a4b1262a5fe2aa8e644e3f9c42059f2f382f2ed | ||
with: | ||
files-list: test/files.txt | ||
invalid-files-list: test/invalid-files.txt | ||
|
||
test-swift: | ||
name: Test Swift binding | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,9 +30,6 @@ dist/ | |
*.dll | ||
*.pc | ||
|
||
# Example dirs | ||
/examples/*/ | ||
|
||
# Grammar volatiles | ||
*.wasm | ||
*.obj | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[submodule "examples/0install"] | ||
path = examples/0install | ||
url = https://github.com/0install/0install | ||
[submodule "examples/bap"] | ||
path = examples/bap | ||
url = https://github.com/BinaryAnalysisPlatform/bap | ||
[submodule "examples/cmdliner"] | ||
path = examples/cmdliner | ||
url = https://github.com/dbuenzli/cmdliner | ||
[submodule "examples/pyre-check"] | ||
path = examples/pyre-check | ||
url = https://github.com/facebook/pyre-check | ||
[submodule "examples/lablgtk"] | ||
path = examples/lablgtk | ||
url = https://github.com/garrigue/lablgtk | ||
[submodule "examples/base"] | ||
path = examples/base | ||
url = https://github.com/janestreet/base | ||
[submodule "examples/melange"] | ||
path = examples/melange | ||
url = https://github.com/melange-re/melange | ||
[submodule "examples/ocaml-cohttp"] | ||
path = examples/ocaml-cohttp | ||
url = https://github.com/mirage/ocaml-cohttp | ||
[submodule "examples/dune"] | ||
path = examples/dune | ||
url = https://github.com/ocaml/dune | ||
[submodule "examples/merlin"] | ||
path = examples/merlin | ||
url = https://github.com/ocaml/merlin | ||
[submodule "examples/ocaml"] | ||
path = examples/ocaml | ||
url = https://github.com/ocaml/ocaml | ||
[submodule "examples/ocaml-lsp"] | ||
path = examples/ocaml-lsp | ||
url = https://github.com/ocaml/ocaml-lsp | ||
[submodule "examples/opam"] | ||
path = examples/opam | ||
url = https://github.com/ocaml/opam | ||
[submodule "examples/eio"] | ||
path = examples/eio | ||
url = https://github.com/ocaml-multicore/eio | ||
[submodule "examples/ocamlformat"] | ||
path = examples/ocamlformat | ||
url = https://github.com/ocaml-ppx/ocamlformat | ||
[submodule "examples/ppxlib"] | ||
path = examples/ppxlib | ||
url = https://github.com/ocaml-ppx/ppxlib | ||
[submodule "examples/js_of_ocaml"] | ||
path = examples/js_of_ocaml | ||
url = https://github.com/ocsigen/js_of_ocaml | ||
[submodule "examples/lwt"] | ||
path = examples/lwt | ||
url = https://github.com/ocsigen/lwt | ||
[submodule "examples/owl"] | ||
path = examples/owl | ||
url = https://github.com/owlbarn/owl |
Empty file.
Submodule js_of_ocaml
added at
d2cf18
Submodule ocaml-cohttp
added at
cf2ae3
Submodule ocamlformat
added at
6ce00b
Submodule pyre-check
added at
5cd77e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
examples/**/*.ml | ||
examples/**/*.mli | ||
!examples/**/*.cppo.* | ||
!examples/ocamlformat/test/failing/**/* | ||
!examples/ocamlformat/test/passing/**/* | ||
!examples/ocaml/testsuite/tests/parse-errors/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -ef | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
git submodule update --init --depth 1 | ||
|
||
tree-sitter parse -q -s \ | ||
$(cat test/files.txt) \ | ||
$(for file in $(cat test/invalid-files.txt); do echo "!${file}"; done) |