feat: Enterprise AgriTech Expansion (VoiceOS, BioShield, MandiPilot, … #5
This file contains hidden or 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: Backend CI/CD | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - 'backend/**' | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - 'backend/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./backend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: './backend/package-lock.json' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build | |
| run: npm run build | |
| - name: Run tests | |
| run: echo "No tests specified yet" | |
| - name: Build Docker Image | |
| run: docker build -t ai-enterprise-backend . |