Skip to content

chore(ci): add tree-sitter nightly test #3

chore(ci): add tree-sitter nightly test

chore(ci): add tree-sitter nightly test #3

Workflow file for this run

name: Tree sitter
on:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: Test tree-sitter parser
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v1
- name: Clone tree-sitter-repo
run: |-
git clone https://github.com/starkware-libs/tree-sitter-cairo --single-branch --depth=1 --filter=blob:none
mv tree-sitter-cairo/** .
- name: Parse examples
uses: tree-sitter/parse-action@v4
with:
files: corelib/*/**.cairo
invalid-files: crates/cairo-lang-parser/src/parser_test_data/cairo_test_files/*.cairo