-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1013 Bytes
/
install-matrix.yml
File metadata and controls
41 lines (35 loc) · 1013 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
41
name: install-matrix
permissions:
contents: read
on:
pull_request:
push:
branches: [ main, master ]
jobs:
install:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: [20, 22]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install deps
run: npm install --frozen-lockfile
- name: Build package
run: npm run build
- name: Pack tarball
run: npm pack
- name: Node ESM import smoke
run: node scripts/smoke/node-esm.mjs kittycad-lib-*.tgz
- name: Node CJS require smoke
run: node scripts/smoke/node-cjs.cjs kittycad-lib-*.tgz
- name: Browser bundling (esbuild) smoke
run: node scripts/smoke/esbuild.mjs kittycad-lib-*.tgz
- name: Browser bundling (Vite) smoke
run: node scripts/smoke/vite.mjs kittycad-lib-*.tgz