Merge pull request #180 from ghostbuster91/query-linter

Change directory structure to work well with query-linter module
pull/481/head
Chris Kipp 2023-01-27 13:52:29 +07:00 committed by GitHub
commit c7e00b85c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 8 deletions

@ -0,0 +1,2 @@
# Move queries to ./queries/scala sub-directory
889eb65aea8e0f9ce1694ab9ee528df1fa5f75d1

@ -93,7 +93,7 @@ jobs:
- name: Smoke test
if: ${{ runner.os == 'Linux' }}
shell: bash
env:
env:
SCALA_SCALA_DIR: scala_scala
DOTTY_DIR: dotty
run: script/smoke_test.sh
@ -101,7 +101,7 @@ jobs:
- name: copy nvim-treesitter highlight queries
if: ${{ runner.os == 'Linux' }}
shell: bash
run: cp ./nvim_treesitter/queries/scala/highlights.scm ./queries/highlights.scm
run: cp ./nvim_treesitter/queries/scala/highlights.scm ./queries/scala/highlights.scm
- name: Check if highlight queries are out of sync with nvim-treesitter
if: ${{ runner.os == 'Linux' }}
@ -109,11 +109,11 @@ jobs:
id: verify-changed-files
with:
files: |
queries/highlights.scm
queries/scala/highlights.scm
- name: Test quries if out of sync with nvim-treesitter
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
echo "::warning file=queries/highlights.scm::Queries in this repo are out of sync with nvim-treesitter"
git diff queries/highlights.scm
npm run test
echo "::warning file=queries/scala/highlights.scm::Queries in this repo are out of sync with nvim-treesitter"
git diff queries/scala/highlights.scm
npm run test

@ -24,7 +24,8 @@
"scope": "source.scala",
"file-types": [
"scala"
]
],
"highlights": "queries/scala/highlights.scm"
}
]
}
}