Skip to content

build: update bindings #111

build: update bindings

build: update bindings #111

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: Set up examples
run: |-
git clone https://github.com/golang/go examples/go --single-branch --depth=1 --filter=blob:none
git clone https://github.com/moby/moby examples/moby --single-branch --depth=1 --filter=blob:none
- name: Run tests
uses: tree-sitter/parser-test-action@v2
with:
test-rust: ${{runner.os == 'Linux'}}
- name: Parse examples
id: examples
continue-on-error: true
uses: tree-sitter/parse-action@v4
with:
files: examples/**/*.go
invalid-files: |
examples/go/src/cmd/compile/internal/syntax/testdata/*.go
examples/go/src/cmd/compile/internal/types2/testdata/local/issue47996.go
examples/go/src/go/parser/testdata/issue42951/not_a_file.go/invalid.go
examples/go/src/internal/types/testdata/**/*.go
examples/go/test/bombad.go
examples/go/test/const2.go
examples/go/test/ddd1.go
examples/go/test/fixedbugs/**/*.go
examples/go/test/import5.go
examples/go/test/makenew.go
examples/go/test/method4.dir/prog.go
examples/go/test/method7.go
examples/go/test/slice3err.go
examples/go/test/switch2.go
examples/go/test/syntax/chan.go
examples/go/test/syntax/chan1.go
examples/go/test/syntax/ddd.go
examples/go/test/syntax/else.go
examples/go/test/syntax/if.go
examples/go/test/syntax/import.go
examples/go/test/syntax/initvar.go
examples/go/test/syntax/semi*.go
examples/go/test/syntax/vareq.go
examples/go/test/syntax/vareq1.go
examples/go/test/typeparam/issue*.go
examples/moby/daemon/logger/journald/read_test.go
- uses: actions/upload-artifact@v4
if: steps.examples.outputs.failures != ''
with:
name: failures-${{matrix.os}}
path: ${{steps.examples.outputs.failures}}