Skip to content

Updates

Updates #710

Workflow file for this run

name: CI
on:
push:
branches: [master]
paths:
- grammar.js
- src/**
- test/**
- bindings/**
- binding.gyp
pull_request:
paths:
- grammar.js
- src/**
- test/**
- bindings/**
- binding.gyp
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
test:
name: Test parser
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v1
- name: Clone scala
uses: actions/checkout@v4
with:
repository: scala/scala
path: examples/scala
ref: v2.13.10
- name: Clone scala3
uses: actions/checkout@v4
with:
repository: scala/scala3
path: examples/scala3
ref: 3.3.0
- name: Run tests
uses: tree-sitter/parser-test-action@v2
with:
test-rust: ${{runner.os == 'Linux'}}
- name: Parse examples
id: examples
uses: tree-sitter/parse-action@v4
with:
files: examples/**/*.scala
invalid-files-list: test/invalid-files.txt