Skip to content

build: update bindings #43

build: update bindings

build: update bindings #43

Workflow file for this run

name: CI
on: [push, pull_request]
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
test-parser:
name: Test parser
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
env:
REPOSITORIES: |
0install/0install@225587e
BinaryAnalysisPlatform/bap@f969db3
janestreet/base@1311ac1
dbuenzli/cmdliner@c229193
ocaml/dune@58d1cd3
ocaml-multicore/eio@14ae3cf
ocsigen/js_of_ocaml@d2cf189
garrigue/lablgtk@e2d564b
ocsigen/lwt@73f1a0f
melange-re/melange@01d6ba4
ocaml/merlin@b274d31
ocaml/ocaml@18c4510
mirage/ocaml-cohttp@cf2ae33
ocaml/ocaml-lsp@ad20957
ocaml-ppx/ocamlformat@6ce00bf
ocaml/opam@eafdc81
owlbarn/owl@c66069e
ocaml-ppx/ppxlib@455f217
facebook/pyre-check@5cd77ed
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v1
- name: Set up examples
shell: bash
run: |
while IFS='@' read -r repo_url repo_sha || [ -n "$repo_url" ]; do
repo_name=$(basename $repo_url)
git clone --filter=blob:none --no-checkout https://github.com/$repo_url examples/$repo_name
cd examples/$repo_name
git checkout $repo_sha
cd ../..
done <<< "$REPOSITORIES"
- name: Run tests
uses: tree-sitter/parser-test-action@v2
with:
test-rust: ${{runner.os == 'Linux'}}
test-node: true
test-python: true
test-go: true
test-swift: ${{runner.os == 'macOS'}}
- name: Parse examples
id: test
uses: tree-sitter/parse-action@v4
with:
files-list: test/files.txt
invalid-files-list: test/invalid-files.txt