-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (37 loc) · 1.02 KB
/
test.yml
File metadata and controls
41 lines (37 loc) · 1.02 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
name: test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
# waiting on: https://github.com/actions/setup-node/issues/531
- run: corepack enable
- uses: actions/setup-node@v5
with:
node-version: 24
cache: "yarn"
- name: Install deps and build
run: |
yarn install --immutable
yarn build
rm -rf node_modules
- name: test built package on node@24
working-directory: ./package-test/
run: |
# CI implies --immutable
yarn install --no-immutable
node -v
node test.cjs
node test.mjs
# Not using a matrix here since it's simpler
# to just duplicate it and not spawn new instances
- uses: actions/setup-node@v5
with:
node-version: 22
- name: test build package on node@22
working-directory: ./package-test/
run: |
node -v
node test.cjs
node test.mjs