Skip to content

ci: removed npm tests from react frontend #4

ci: removed npm tests from react frontend

ci: removed npm tests from react frontend #4

name: React CI
on:
push:
branches:
- master
paths:
- 'react_frontend/**'
- '.github/workflows/ci_react_frontend.yml'
pull_request:
branches:
- master
paths:
- 'react_frontend/**'
- '.github/workflows/ci_react_frontend.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.11.1'
- name: Install dependencies
working-directory: ./react_frontend
run: npm install
- name: Set environment variables
run: echo "REACT_APP_API_URL=${{ secrets.REACT_APP_API_URL }}" >> $GITHUB_ENV
- name: Run build
working-directory: ./react_frontend
run: npm run build