Upgrade to tree-sitter 0.22 and add Python, C and Go bindings #17
Workflow file for this run
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
name: CI | |
on: [push, pull_request] | |
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-latest] | |
steps: | |
- name: Set up tree-sitter | |
uses: tree-sitter/parser-setup-action@v1.2 | |
- name: Run tests | |
uses: tree-sitter/parser-test-action@v1.2 | |
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/parser-setup-action@v1.2 | |
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 | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build | |
run: swift build | |
- name: Test | |
run: swift test | |
test-go: | |
name: Test Go binding | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
cache-dependency-path: bindings/go/go.mod | |
- name: Get dependencies | |
working-directory: bindings/go | |
run: go get -t . | |
- name: Test | |
working-directory: bindings/go | |
run: go test |