-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (42 loc) · 1.05 KB
/
build-and-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
38
39
40
41
42
43
44
45
46
name: Build and test
on:
push:
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x, 20.x, 22.x]
include:
- os: macos-latest
node-version: 18.x
- os: macos-latest
node-version: 20.x
experimental: true
- os: macos-latest
node-version: 22.x
experimental: true
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
shell: bash
- run: yarn run dist:ci
shell: bash
- run: yarn link
shell: bash
- run: yarn run example:link
shell: bash
- run: yarn run example:install
shell: bash
- run: yarn run example:test:unit
shell: bash
- run: yarn run example:test:cy:run
shell: bash