aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-05-29 16:52:20 +0200
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit9c0a99819c99d70d28334dc6ea1c3ac773e4fed1 (patch)
tree24d6d9ebdf2b9aa9a11c9ee271fa5e80d96fe6da /.github/workflows
parentrefactor: rewrite installation using jobs and async (diff)
downloadnvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.gz
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.bz2
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.lz
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.xz
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.zst
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.zip
ci: remove update-lockfile shell script
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test-queries.yml42
-rw-r--r--.github/workflows/tests.yml15
-rw-r--r--.github/workflows/update-lockfile.yml7
-rw-r--r--.github/workflows/update-readme.yml2
4 files changed, 30 insertions, 36 deletions
diff --git a/.github/workflows/test-queries.yml b/.github/workflows/test-queries.yml
index 5e9be1e38..bb11db3dc 100644
--- a/.github/workflows/test-queries.yml
+++ b/.github/workflows/test-queries.yml
@@ -1,12 +1,12 @@
name: Test queries
on:
- push:
- branches:
- - "master"
+ # push:
+ # branches:
+ # - "main"
pull_request:
branches:
- - "master"
+ - "main"
# Cancel any in-progress CI runs for a PR if it is updated
concurrency:
@@ -24,29 +24,29 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
cc: [gcc, clang]
- nvim_tag: [v0.10.4]
+ nvim_tag: [nightly]
exclude:
- os: ubuntu-latest
cc: clang
- nvim_tag: v0.10.4
+ nvim_tag: nightly
- os: macos-14
cc: gcc
- nvim_tag: v0.10.4
-
- - os: windows-latest
- cc: clang
- nvim_tag: v0.10.4
-
- include:
- - os: windows-latest
- cc: cl
nvim_tag: nightly
- - os: ubuntu-latest
+ - os: windows-latest
cc: gcc
nvim_tag: nightly
+ # include:
+ # - os: windows-latest
+ # cc: cl
+ # nvim_tag: nightly
+
+ # - os: ubuntu-latest
+ # cc: gcc
+ # nvim_tag: nightly
+
name: Parser compilation
runs-on: ${{ matrix.os }}
env:
@@ -69,8 +69,8 @@ jobs:
uses: actions/cache@v4
with:
path: |
- ./parser/
- ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/
+ ~/.local/share/nvim/site/parser/
+ ~/AppData/Local/nvim-data/site/parser/
key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
'./lockfile.json',
'./lua/nvim-treesitter/install.lua',
@@ -78,11 +78,7 @@ jobs:
'./lua/nvim-treesitter/shell_command_selectors.lua') }}
- name: Compile parsers
- run: $NVIM --headless -c "lua require'nvim-treesitter.install'.prefer_git=false" -c "TSInstallSync all" -c "q"
-
- - name: Post compile Windows
- if: runner.os == 'Windows'
- run: cp -r ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/* parser
+ run: $NVIM -l ./scripts/install-parsers.lua
- name: Check query files
run: $NVIM -l ./scripts/check-queries.lua
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index e09a5f295..86c7ad630 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -1,12 +1,12 @@
name: Tests
on:
- push:
- branches:
- - "master"
+ # push:
+ # branches:
+ # - "main"
pull_request:
branches:
- - "master"
+ - "main"
# Cancel any in-progress CI runs for a PR if it is updated
concurrency:
@@ -39,7 +39,8 @@ jobs:
- name: Install and prepare Neovim
env:
- NVIM_TAG: v0.10.4
+ NVIM_TAG: nightly
+ TREE_SITTER_CLI_TAG: v0.20.8
run: |
bash ./scripts/ci-install.sh
@@ -57,8 +58,8 @@ jobs:
'./lua/nvim-treesitter/shell_selectors.lua') }}
- name: Compile parsers Unix like
- run: |
- nvim --headless -c "TSInstallSync all" -c "q"
+ if: ${{ runner.os != 'Windows' && steps.parsers-cache.outputs.cache-hit != 'true' }}
+ run: nvim -l ./scripts/install-parsers.lua
- name: Tests
run: PATH=/usr/local/bin:$PATH ./scripts/run_tests.sh
diff --git a/.github/workflows/update-lockfile.yml b/.github/workflows/update-lockfile.yml
index 992e1c0d2..70d2c0c0a 100644
--- a/.github/workflows/update-lockfile.yml
+++ b/.github/workflows/update-lockfile.yml
@@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
- ref: master
+ ref: main
- uses: actions/create-github-app-token@v2
id: app-token
@@ -34,10 +34,7 @@ jobs:
SKIP_LOCKFILE_UPDATE_FOR_LANGS: "bp,devicetree,dhall,elm,enforce,git_config,nickel,rescript,rust,slint,sql,t32,templ,typespec,verilog,wit"
run: |
cp lockfile.json /tmp/old_lockfile.json
- nvim -l scripts/write-lockfile.lua
- # Pretty print
- cp lockfile.json /tmp/lockfile.json
- cat /tmp/lockfile.json | jq --sort-keys > lockfile.json
+ nvim -l ./scripts/update-lockfile.lua
UPDATED_PARSERS=$(/tmp/jd -f merge /tmp/old_lockfile.json lockfile.json | jq -r 'keys | join(", ")')
echo "UPDATED_PARSERS=$UPDATED_PARSERS" >> $GITHUB_ENV
diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml
index 557a3f3c6..849bb9814 100644
--- a/.github/workflows/update-readme.yml
+++ b/.github/workflows/update-readme.yml
@@ -3,7 +3,7 @@ name: Update README
on:
push:
branches:
- - master
+ - main
workflow_dispatch:
jobs: