ci: removed npm tests from react frontend #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |