Skip to content

Commit ef6e030

Browse files
Use test matrix for Node v14, v16 and v18. (#126)
Also add docs for supported Node versions.
1 parent b1c1c11 commit ef6e030

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,19 @@ on:
77
jobs:
88
test:
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [14.x, 16.x, 18.x] # NOTE: Keep in sync with README.
13+
# See Node.js release schedule: https://nodejs.org/en/about/releases/
14+
# - v14 EOL: Apr 30 2023
15+
# - v16 EOL: Apr 30 2024
16+
# - v18 EOL: Apr 30 2025
1017
steps:
1118
- uses: actions/checkout@v3
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
1223
- run: yarn install
1324
- run: npm run test
1425
lint:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ LSIF indexer for TypeScript and JavaScript.
1010
npm install -g @sourcegraph/lsif-typescript
1111
```
1212

13+
Currently, Node v14, Node v16 and Node v18 are supported. <!-- Source of truth: .github/workflows/ci.yml -->
14+
1315
### Indexing a TypeScript project
1416

1517
Navigate to the project root, containing `tsconfig.json`.

0 commit comments

Comments
 (0)