-
Notifications
You must be signed in to change notification settings - Fork 90
37 lines (30 loc) · 985 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on: [push, pull_request]
jobs:
build:
name: Build & test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x, v20.18.1, 22.x, 23.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: 'npm'
cache-dependency-path: 'package.json'
- run: npm install
- run: npm run ci-tests
env:
# The new type stripping breaks our existing ts-node testing
# set up, so disable it:
NODE_OPTIONS: ${{ startsWith(matrix.node-version, '23') && '--no-experimental-strip-types' || '' }}
- name: Deploy docs
if: github.ref == 'refs/heads/main' && matrix.node-version == 'v20.18.1'
uses: JamesIves/github-pages-deploy-action@v4
with:
single-commit: true
branch: gh-pages
folder: typedoc