docs: update readme #222
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: 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/joshvera/effects examples/effects --single-branch --depth=1 --filter=blob:none | |
git clone https://github.com/PostgRest/postgrest examples/postgrest --single-branch --depth=1 --filter=blob:none | |
git clone https://github.com/GaloisInc/ivory examples/ivory --single-branch --depth=1 --filter=blob:none | |
git clone https://github.com/polysemy-research/polysemy examples/polysemy --single-branch --depth=1 --filter=blob:none | |
git clone https://github.com/github/semantic examples/semantic --single-branch --depth=1 --filter=blob:none | |
git clone https://github.com/haskell/haskell-language-server examples/haskell-language-server --single-branch --depth=1 --filter=blob:none | |
git clone https://github.com/AndrasKovacs/flatparse examples/flatparse --single-branch --depth=1 --filter=blob:none | |
git clone https://github.com/ekmett/lens examples/lens --single-branch --depth=1 --filter=blob:none | |
git clone https://github.com/tek/tsh-test-ghc examples/tsh-test-ghc --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 | |
uses: tree-sitter/parse-action@v4 | |
with: | |
files: | | |
examples/*.hs | |
!exampels/haskell-language-server/test/functional/Symbol.hs | |
!examples/lens/tests/properties.hs | |
!examples/semantic/semantic/test/fixtures/haskell/corpus/function-declarations.A.hs | |
!examples/semantic/semantic/test/fixtures/haskell/corpus/function-declarations.B.hs | |
!examples/semantic/semantic/test/fixtures/haskell/corpus/tempate-haskell.A.hs | |
!examples/semantic/semantic/test/fixtures/haskell/corpus/template-haskell.B.hs | |
!examples/semantic/semantic/test/fixtures/haskell/corpus/algebraic-datatype-declarations.A.hs | |
!examples/semantic/semantic/test/fixtures/haskell/corpus/algebraic-datatype-declarations.B.hs | |
!examples/semantic/semantic/test/fixtures/haskell/corpus/newtype-declaration.A.hs | |
!examples/semantic/semantic/test/fixtures/haskell/corpus/newtype-declaration.B.hs | |
!examples/semantic/semantic/test/fixtures/haskell/corpus/type-synonyms.A.hs | |
!examples/semantic/semantic/test/fixtures/haskell/corpus/type-synonyms.B.hs | |
!examples/polysemy/src/Polysemy/Law.hs | |
!examples/tsh-test-ghc/compiler/GHC/Builtin/PrimOps.hs | |
invalid-files: | | |
!examples/haskell-language-server/test/testdata/FuncTestFail.hs |