Skip to content

Update workflows, bindings, and versions #268

Update workflows, bindings, and versions

Update workflows, bindings, and versions #268

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: Set up the repo
uses: tree-sitter/parser-setup-action@v1.1
with:
node-version: ${{vars.NODE_VERSION}}
- name: Set up examples
run: |-
git clone https://github.com/Bash-it/bash-it examples/bash-it --single-branch --depth=1
git clone https://github.com/oilshell/wild-corpus examples/wild-corpus --single-branch --depth=1
git clone https://anongit.gentoo.org/git/repo/gentoo.git examples/gentoo --single-branch --depth=1
git clone https://git.savannah.gnu.org/git/bash.git examples/bash --single-branch --depth=1
- name: Run tests
uses: tree-sitter/parser-test-action@v1.2
with:
lint: ${{runner.os == 'Linux'}}
test-library: ${{runner.os == 'Linux'}}
corpus-files: |
examples/*.sh
examples/bash-it/**/*.sh
examples/bash-it/**/*.bash
examples/wild-corpus/**/*.sh
examples/bash/**/*.sh
examples/bash/**/*.tests
examples/gentoo/**/*.sh
examples/gentoo/**/*.eclass