-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 941 Bytes
/
Copy pathci.yml
File metadata and controls
40 lines (36 loc) · 941 Bytes
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
37
38
39
40
name: CI
on:
push:
branches: [main]
pull_request:
# Lets the first run be started from the Actions tab, so the badge is not
# empty until the next commit.
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# The host half uses AbortSignal.any, which needs Node 20.3+.
node: ['20', '22']
name: test (node ${{ matrix.node }})
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
# The plugin has no dependencies, so there is nothing to install.
- run: npm test
syntax:
runs-on: ubuntu-latest
name: syntax
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: node --check lib/index.js
- run: node --check lib/client.js