Repository navigation
63 lines (55 loc) · 1.86 KB
/
Copy pathnodejs.yml
File metadata and controls
63 lines (55 loc) · 1.86 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x]
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: pnpm install, lint, format check, build, package checks, type-check, and test
run: |
pnpm install --frozen-lockfile
pnpm lint
pnpm format --check
pnpm build
pnpm exec oxfmt --check 'perf-testing/*.mjs' perf-testing/README.md perf-testing/budgets.json
pnpm benchmark:immer:build
node --expose-gc --enable-source-maps perf-testing/dist/immutability-benchmarks.mjs --check --patches both --object-size-1 10 --object-size-2 30 --rtkq-count 10
node --expose-gc --enable-source-maps perf-testing/dist/immutability-benchmarks.mjs --check --patches off --filter '^apply-'
pnpm test:benchmarks
pnpm size
pnpm test:package
pnpm test:build-watch
pnpm type-check
pnpm test
env:
CI: true
minimum-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- name: Use Node.js 24.x to build the package
uses: actions/setup-node@v7
with:
node-version: 24.x
cache: pnpm
- name: pnpm install, build, and pack
run: |
pnpm install --frozen-lockfile
pnpm build
pnpm pack --pack-destination "$RUNNER_TEMP"
- name: Use Node.js 14.0.0, the oldest version that engines allows
uses: actions/setup-node@v7
with:
node-version: 14.0.0
- name: Check the packed package on Node.js 14.0.0
run: node scripts/check-minimum-node.mjs "$RUNNER_TEMP"/mutative-*.tgz