-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (45 loc) · 1.46 KB
/
build-frontend.yml
File metadata and controls
54 lines (45 loc) · 1.46 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
name: Test Frontend Build
on:
push:
branches: ['main']
paths:
- 'src/frontend/**'
- '.github/workflows/**'
pull_request:
branches: ['main']
paths:
- 'src/frontend/**'
- '.github/workflows/**'
workflow_dispatch:
release:
types: [published]
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest,ubuntu-24.04-arm, windows-11-arm, windows-latest, macos-latest]
node-version: [latest]
defaults:
run:
working-directory: ./src/frontend
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
- name: Inject Version
run: python scripts/inject_version.py
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: src/frontend/package-lock.json
- name: Install dependencies
run: npm i
- name: Build (Node adapter)
run: npm run build
env:
NODE_OPTIONS: --max-old-space-size=4096