Skip to content

Feature/plots section (#207) #269

Feature/plots section (#207)

Feature/plots section (#207) #269

Workflow file for this run

name: React Vite Build and Test
on:
push:
branches:
- 'main'
- 'dev'
pull_request:
branches:
- 'main'
- 'dev'
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Test build
run: |
if [ ! -d "build" ]; then
echo "Error: Build failed, build directory not found"
exit 1
fi
- name: Run tests
run: yarn test --watchAll=false
env:
CI: true
REACT_APP_FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}