aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-02-10 15:33:57 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-02-10 19:49:14 +0100
commit6444286cbf3a37862feaa7ff86456dd948f5cf8b (patch)
tree146ca195ed5c7f74a955029626f856437f7a149e /.github
parentci: use `windows-latest` over `windows-2022` (diff)
downloadnvim-treesitter-6444286cbf3a37862feaa7ff86456dd948f5cf8b.tar
nvim-treesitter-6444286cbf3a37862feaa7ff86456dd948f5cf8b.tar.gz
nvim-treesitter-6444286cbf3a37862feaa7ff86456dd948f5cf8b.tar.bz2
nvim-treesitter-6444286cbf3a37862feaa7ff86456dd948f5cf8b.tar.lz
nvim-treesitter-6444286cbf3a37862feaa7ff86456dd948f5cf8b.tar.xz
nvim-treesitter-6444286cbf3a37862feaa7ff86456dd948f5cf8b.tar.zst
nvim-treesitter-6444286cbf3a37862feaa7ff86456dd948f5cf8b.zip
ci: fix invalid workflow
Context variables aren't always available, so we can't rely on them for e.g. environment variables. Also merge all install scripts into `script/ci-install.sh`, that way it can be called the same way regardless of system.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test-queries.yml6
-rw-r--r--.github/workflows/tests.yml2
-rw-r--r--.github/workflows/update-lockfile.yml2
-rw-r--r--.github/workflows/update-readme.yml2
4 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/test-queries.yml b/.github/workflows/test-queries.yml
index 0d713c836..e1606f2fc 100644
--- a/.github/workflows/test-queries.yml
+++ b/.github/workflows/test-queries.yml
@@ -51,8 +51,8 @@ jobs:
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.cc }}
- NVIM: ${{ runner.os == 'Windows' && 'nvim-win64\\bin\\nvim.exe' || 'nvim' }}
- ALLOWED_INSTALLATION_FAILURES: ${{ runner.os == 'Windows' && 'rnoweb' }}
+ NVIM: ${{ matrix.os == 'windows-latest' && 'nvim-win64\\bin\\nvim.exe' || 'nvim' }}
+ ALLOWED_INSTALLATION_FAILURES: ${{ matrix.os == 'windows-latest' && 'rnoweb' }}
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
@@ -65,7 +65,7 @@ jobs:
env:
NVIM_TAG: ${{ matrix.nvim_tag }}
run: |
- bash ./scripts/ci-install-${{ matrix.os }}.sh
+ bash ./scripts/ci-install.sh
- name: Setup Parsers Cache
id: parsers-cache
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 8c4043417..b3858b5de 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -44,7 +44,7 @@ jobs:
env:
NVIM_TAG: stable
run: |
- bash ./scripts/ci-install-${{ matrix.os }}.sh
+ bash ./scripts/ci-install.sh
- name: Setup Parsers Cache
id: parsers-cache
diff --git a/.github/workflows/update-lockfile.yml b/.github/workflows/update-lockfile.yml
index efcea9ee6..b163a3232 100644
--- a/.github/workflows/update-lockfile.yml
+++ b/.github/workflows/update-lockfile.yml
@@ -27,7 +27,7 @@ jobs:
wget https://github.com/josephburnett/jd/releases/download/v1.7.1/jd-amd64-linux
mv jd-amd64-linux /tmp/jd
chmod +x /tmp/jd
- bash scripts/ci-install-ubuntu-latest.sh
+ bash scripts/ci-install.sh
- name: Update parsers
env:
diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml
index d8954e462..e68b43d50 100644
--- a/.github/workflows/update-readme.yml
+++ b/.github/workflows/update-readme.yml
@@ -23,7 +23,7 @@ jobs:
env:
NVIM_TAG: stable
run: |
- bash ./scripts/ci-install-ubuntu-latest.sh
+ bash ./scripts/ci-install.sh
- name: Check README
run: |