mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
Bumps the actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request). Updates `actions/checkout` from 5 to 6 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) Updates `peter-evans/create-pull-request` from 7 to 8 - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v7...v8) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: peter-evans/create-pull-request dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- "lua/nvim-treesitter/parsers.lua"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test-downstream:
|
|
name: Check downstream queries
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
NVIM: "nvim"
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: tree-sitter/setup-action/cli@v2
|
|
|
|
- name: Install and prepare Neovim
|
|
env:
|
|
NVIM_TAG: "nightly"
|
|
run: |
|
|
bash ./scripts/ci-install.sh
|
|
|
|
- name: Compile parsers
|
|
run: $NVIM -l ./scripts/install-parsers.lua --max-jobs=10
|
|
|
|
- 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: Clone textobjects
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: nvim-treesitter/nvim-treesitter-textobjects
|
|
ref: main
|
|
path: .tests/nvim-treesitter-textobjects
|
|
sparse-checkout: queries
|
|
|
|
- name: Check textobjects
|
|
working-directory: .tests/nvim-treesitter-textobjects/
|
|
run: ../../ts_query_ls check queries/
|
|
|
|
- name: Clone context
|
|
if: always()
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: nvim-treesitter/nvim-treesitter-context
|
|
ref: master
|
|
path: .tests/nvim-treesitter-context
|
|
sparse-checkout: queries
|
|
|
|
- name: Check context
|
|
if: always()
|
|
working-directory: .tests/nvim-treesitter-context/
|
|
run: ../../ts_query_ls check queries/
|
|
|