Skip to content

Update Dockerfile

Update Dockerfile #4

name: Test Frontend Build
on:
push:
branches: ['main']
paths:
- 'src/frontend/**'
- '.github/workflows/**'
pull_request:
branches: ['main']
paths:
- 'src/frontend/**'
- '.github/workflows/**'
workflow_dispatch:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [latest]
defaults:
run:
working-directory: ./src/frontend
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: src/frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build (Node adapter)
run: npm run build:node