Skip to content

Merge pull request #34 from crni99/dependabot/npm_and_yarn/react-fron… #170

Merge pull request #34 from crni99/dependabot/npm_and_yarn/react-fron…

Merge pull request #34 from crni99/dependabot/npm_and_yarn/react-fron… #170

Workflow file for this run

name: Build & Test React Frontend
on:
push:
branches: [ "main" ]
paths:
- 'react-frontend/**'
pull_request:
branches: [ "main" ]
paths:
- 'react-frontend/**'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18.x, 20.x, 22.x, 24.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: react-frontend/package-lock.json
- name: Install dependencies
working-directory: ./react-frontend
run: npm install
- name: Build project
working-directory: ./react-frontend
run: npm run build --if-present