-
-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (47 loc) · 1.15 KB
/
test.yml
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
name: Test
on:
push:
branches:
- main
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- "**"
env:
NODE_OPTIONS: --max_old_space_size=102400
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Workaround for GitHub Actions bug
- name: Enable Corepack
run: corepack enable
- name: Setup node@22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Enable Corepack
run: corepack enable
- name: Install front-end dependencies
run: pnpm install
- name: Build front-end assets
run: pnpm run build
- name: Test on node@22
run: pnpm run test
- name: Setup node@20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Enable Corepack
run: corepack enable
- name: Test on node@20
run: pnpm run test
- name: Setup node@18
uses: actions/setup-node@v4
with:
node-version: 18
- name: Enable Corepack
run: corepack enable
- name: Test on node@18
run: pnpm run test