-
-
Notifications
You must be signed in to change notification settings - Fork 56
37 lines (37 loc) · 1007 Bytes
/
Copy pathtest.yml
File metadata and controls
37 lines (37 loc) · 1007 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
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-24.04-arm
steps:
- name: Setup node@24
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 24
- name: Install pnpm
run: npm install -g pnpm
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install front-end dependencies
run: pnpm install
- name: Build front-end assets
run: pnpm run build
- name: Test on node@24
run: pnpm run test
- name: Setup node@20
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 20
- name: Test on node@20
run: pnpm run test