Skip to content

fix: Resolve remaining React hooks dependency warnings #6

fix: Resolve remaining React hooks dependency warnings

fix: Resolve remaining React hooks dependency warnings #6

Workflow file for this run

name: Full Stack CI/CD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
frontend-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: VehicleShowroom/node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('VehicleShowroom/package.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install frontend dependencies
working-directory: ./VehicleShowroom
run: npm install
- name: Run frontend tests
working-directory: ./VehicleShowroom
run: npm run test:ci
- name: Build frontend
working-directory: ./VehicleShowroom
run: npm run build
env:
REACT_APP_API_URL: https://vehicleshowroom-api.onrender.com/api
REACT_APP_NAME: Vehicle Showroom Management
REACT_APP_VERSION: 2.0.0
REACT_APP_ENVIRONMENT: production
backend-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore backend dependencies
working-directory: ./VehicleShowroomManagement
run: dotnet restore
- name: Build backend
working-directory: ./VehicleShowroomManagement
run: dotnet build --no-restore --configuration Release
- name: Run backend tests
working-directory: ./VehicleShowroomManagement
run: dotnet test --no-build --configuration Release --verbosity normal
deploy:
runs-on: ubuntu-latest
needs: [frontend-test, backend-test]
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to Render (Blueprint)
run: |
echo "🚀 Deploying full stack application to Render..."
echo "✅ Frontend and Backend tests passed"
echo "✅ Ready for production deployment"
echo "📋 Next steps:"
echo " 1. Go to render.com"
echo " 2. Use Blueprint deployment with render.yaml"
echo " 3. Set environment variables"
echo " 4. Deploy both services"