Skip to content

fix(grammar)!: (type_synomym) -> (type_synonym) #3

fix(grammar)!: (type_synomym) -> (type_synonym)

fix(grammar)!: (type_synomym) -> (type_synonym) #3

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
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-latest]
steps:
- name: Set up repository
uses: actions/checkout@v5
- name: Set up tree-sitter
uses: tree-sitter/setup-action@v2
with:
install-lib: false
- 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
query:
name: Validate queries
runs-on: ubuntu-latest
steps:
- name: Set up repository
uses: actions/checkout@v5
- name: Set up tree-sitter
uses: tree-sitter/setup-action@v2
with:
install-lib: false
- name: Build parser
run: tree-sitter build
- name: Set up ts_query_ls
run: curl -fL https://github.com/ribru17/ts_query_ls/releases/latest/download/ts_query_ls-x86_64-unknown-linux-gnu.tar.gz | tar -xz
- name: Check queries
run: ./ts_query_ls check -f queries/