-
-
Notifications
You must be signed in to change notification settings - Fork 56
39 lines (39 loc) · 1.04 KB
/
Copy pathtest.yml
File metadata and controls
39 lines (39 loc) · 1.04 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
name: Test
on:
push:
branches:
- main
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- "**"
env:
NODE_OPTIONS: --max_old_space_size=102400
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup node@24
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
- name: Install pnpm
run: npm i pnpm@11 -g
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install front-end dependencies
run: pnpm install --frozen-lockfile
- name: Build front-end assets
run: pnpm run build
- name: Test on node@24
run: pnpm run test
- name: Setup node@22
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
- name: Test on node@22
run: pnpm run test