Skip to content

Commit

Permalink
ci: parse chatito examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed Feb 21, 2024
1 parent a18f1c8 commit fa4f489
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: Test grammar
name: CI

on:
push:
branches: ["*"]
branches: [master]
paths:
- grammar.js
- src/**
- bindings/**
- binding.gyp
- extensions/**
pull_request:
branches: ["*"]
paths:
- grammar.js
- src/**
Expand All @@ -20,4 +19,26 @@ on:

jobs:
test:
uses: tree-sitter-grammars/.github/.github/workflows/ci.yml@main
name: Test parsers
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
steps:
- name: Set up repository
uses: tree-sitter-grammars/actions/setup@main
with:
node-version: ${{vars.NODE_VERSION}}
- name: Clone examples
uses: actions/checkout@v4
with:
path: examples/Chatito
repository: rodrigopivi/Chatito
sparse-checkout: examples
ref: 25f95be775ad9729246422d99da0d8c7da43d3ba
- name: Run tests
uses: tree-sitter-grammars/actions/test@main
with:
test-library: ${{runner.os == 'Linux'}}
examples: examples/Chatito/examples/
1 change: 1 addition & 0 deletions examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Chatito/

0 comments on commit fa4f489

Please sign in to comment.