Update workflows, bindings, and versions #269
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: | |
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/[email protected] | |
with: | |
node-version: ${{vars.NODE_VERSION}} | |
- name: Set up examples | |
run: |- | |
git clone https://github.com/Bash-it/bash-it examples/bash-it -q --single-branch --depth=1 | |
git clone https://github.com/oilshell/wild-corpus examples/wild-corpus -q --single-branch --depth=1 | |
git clone https://anongit.gentoo.org/git/repo/gentoo.git examples/gentoo -q --single-branch --depth=1 | |
git clone https://git.savannah.gnu.org/git/bash.git examples/bash -q --single-branch --depth=1 | |
- name: Run tests | |
uses: tree-sitter/[email protected] | |
with: | |
lint: ${{runner.os == 'Linux'}} | |
test-library: ${{runner.os == 'Linux'}} | |
corpus-files: | | |
examples/*.sh | |
examples/bash-it/**/*.sh | |
examples/bash-it/**/*.bash | |
examples/bash/**/*.sh | |
examples/bash/**/*.tests | |
examples/gentoo/**/*.sh | |
examples/gentoo/**/*.eclass | |
# too many files: | |
# examples/wild-corpus/**/*.sh | |
# examples/gentoo/**/*.ebuild | |
# parsing errors: | |
!examples/bash-it/completion/available/aliases.completion.bash | |
!examples/bash-it/completion/available/bundler.completion.bash | |
!examples/bash-it/completion/available/sqlmap.completion.bash | |
!examples/bash-it/plugins/available/aws.plugin.bash | |
!examples/bash-it/plugins/available/colors.plugin.bash | |
!examples/bash-it/themes/hawaii50/hawaii50.theme.bash | |
!examples/bash/examples/shellmath/shellmath.sh | |
!examples/bash/tests/arith.tests | |
!examples/bash/tests/array.tests | |
!examples/bash/tests/assoc.tests | |
!examples/bash/tests/case.tests | |
!examples/bash/tests/comsub-posix.tests | |
!examples/bash/tests/cond.tests | |
!examples/bash/tests/errors.tests | |
!examples/bash/tests/extglob.tests | |
!examples/bash/tests/glob.tests | |
!examples/bash/tests/heredoc.tests | |
!examples/bash/tests/histexp.tests | |
!examples/bash/tests/misc/dev-tcp.tests | |
!examples/bash/tests/more-exp.tests | |
!examples/bash/tests/new-exp.tests | |
!examples/bash/tests/posixexp.tests | |
!examples/bash/tests/posixexp2.tests | |
!examples/bash/tests/printf.tests | |
!examples/bash/tests/quote.tests | |
!examples/bash/tests/quotearray.tests | |
!examples/bash/tests/redir.tests | |
!examples/bash/tests/test.tests | |
!examples/gentoo/app-misc/editor-wrapper/files/editor-wrapper-4.sh | |
!examples/gentoo/eclass/tests/toolchain-funcs.sh | |
!examples/gentoo/mail-client/thunderbird-bin/files/thunderbird-bin-r1.sh | |
!examples/gentoo/mail-client/thunderbird/files/thunderbird-r1.sh | |
!examples/gentoo/sys-apps/less/files/lesspipe-r1.sh | |
!examples/gentoo/sys-apps/less/files/lesspipe-r3.sh | |
!examples/gentoo/www-client/firefox-bin/files/firefox-bin-r1.sh | |
!examples/gentoo/www-client/firefox/files/firefox-r1.sh |