🚀 Kali Linux Control Panel Dashboard - Production Ready React Application #47
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: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install root dependencies | |
| run: npm install | |
| - name: Install Kali Dashboard dependencies | |
| run: | | |
| cd kali-dashboard | |
| npm install | |
| - name: Run ESLint | |
| run: | | |
| cd kali-dashboard | |
| npm run lint | |
| - name: Build Kali Dashboard | |
| run: | | |
| cd kali-dashboard | |
| npm run build | |
| - name: Check build artifacts | |
| run: | | |
| cd kali-dashboard | |
| ls -la dist/ |