Skip to content

Standardization update #134

Standardization update

Standardization update #134

Workflow file for this run

name: CI
on:
push:
branches: [main]
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: Set up repository
uses: tree-sitter/[email protected]
with:
node-version: ${{vars.NODE_VERSION}}
- name: Clone apisix corpus
uses: actions/checkout@v4
with:
path: examples/apisix
repository: apache/apisix
sparse-checkout: apisix/
- name: Clone kong corpus
uses: actions/checkout@v4
with:
path: examples/kong
repository: Kong/kong
sparse-checkout: kong/
- name: Clone lua corpus
uses: actions/checkout@v4
with:
path: examples/lua
repository: lua/lua
sparse-checkout: testes/
- name: Clone luvit corpus
uses: actions/checkout@v4
with:
path: examples/luvit
repository: luvit/luvit
- name: Clone neovim corpus
uses: actions/checkout@v4
with:
path: examples/neovim
repository: neovim/neovim
sparse-checkout-cone-mode: false
sparse-checkout: |-
/test/**/*.lua
/runtime/**/*.lua
- name: Clone xmake corpus
uses: actions/checkout@v4
with:
path: examples/xmake
repository: xmake-io/xmake
- name: Run tests
uses: tree-sitter/[email protected]
with:
test-library: ${{runner.os == 'Linux'}}
corpus-files: |-
examples/apisix/apisix/**/*.lua
examples/kong/kong/**/*.lua
examples/lua/testes/*.lua
examples/luvit/**/*.lua
examples/neovim/test/**/*.lua
examples/neovim/runtime/**/*.lua
examples/xmake/**/*.lua