-
Notifications
You must be signed in to change notification settings - Fork 73
39 lines (35 loc) · 854 Bytes
/
ci.yml
File metadata and controls
39 lines (35 loc) · 854 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
name: Build and Test
on:
push:
branches: [main]
paths-ignore:
- '**.md' #Do not need to run CI for markdown changes.
pull_request:
branches: [main]
paths-ignore:
- '**.md'
jobs:
build-test:
strategy:
matrix:
variations: [
# {os: ubuntu-latest, node: latest},
{os: ubuntu-latest, node: 'lts/*'},
]
runs-on: ${{ matrix.variations.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.variations.node }}
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Lint
run: npm run lint
- name: Build Docs
run: npm run doc