Skip to content

Commit 978bc7b

Browse files
committed
ci: fix tree-sitter compilation on CI
1 parent 12fadbd commit 978bc7b

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
name: CI
22
on:
3-
push:
4-
branches: master
53
pull_request:
6-
branches: "*"
4+
branches:
5+
- "master"
76
concurrency:
8-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
7+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
98
cancel-in-progress: true
109
jobs:
1110
lint:
@@ -27,15 +26,21 @@ jobs:
2726
pnpm i
2827
pnpm run lint:check
2928
unit_test:
30-
runs-on: ubuntu-latest
3129
strategy:
3230
fail-fast: false
3331
matrix:
3432
os: [ubuntu-latest]
35-
rev: [nightly, stable, v0.10.4]
33+
cc: [gcc]
34+
rev: [nightly, stable]
35+
runs-on: ${{ matrix.os }}
36+
env:
37+
CC: ${{ matrix.cc }}
3638
steps:
3739
- name: Checkout
3840
uses: actions/checkout@v4
41+
- uses: actions/setup-node@v3
42+
- name: Install tree-sitter CLI
43+
run: npm i -g tree-sitter-cli
3944
- name: Install neovim
4045
uses: rhysd/action-setup-vim@v1
4146
with:

0 commit comments

Comments
 (0)