Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: React CI
on: [push]
jobs:
build:
name: Build and unit test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm install
- run: npm run build --if-present
- run: npm test
deploy:
name: Firebase deploy
needs: [build, cypress]

Check failure on line 20 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / React CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 20, Col: 20): Job 'deploy' depends on unknown job 'cypress'.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '22'
- run: npm install
- run: npm run build
- run: npm install -g firebase-tools
- run: firebase deploy --token "${{ secrets.FIREBASE_DEPLOY_TOKEN }}" --non-interactive