-
Notifications
You must be signed in to change notification settings - Fork 9
37 lines (33 loc) · 898 Bytes
/
test.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
37
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
latest-node-version: [20.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v1
- name: Build with Node.js ${{ matrix.latest-node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.latest-node-version }}
- name: Build and test with latest
run: |
npm install
npm run build
npm run test:only
- name: Switch to Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Test node
run: |
node dist/gen-mapping.umd.js
- name: Benchmark
run: |
npm run benchmark:install
npm run benchmark:only
env:
CI: true