🚀 CI - push on refs/heads/main #44
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: 🧪 Continuous Integration | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| paths: | |
| - 'pns-app/**' | |
| - '.github/workflows/ci.yaml' | |
| pull_request: | |
| branches: [ main, master ] | |
| paths: | |
| - 'pns-app/**' | |
| - '.github/workflows/ci.yaml' | |
| run-name: 🚀 CI - ${{ github.event_name }} on ${{ github.ref }} | |
| jobs: | |
| quality-assurance: | |
| name: 🚀 Quality Assurance | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - name: 📥 Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: ⚙️ Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: 📦 Install dependencies | |
| run: | | |
| npm install | |
| echo "### 📦 Dependencies" >> $GITHUB_STEP_SUMMARY | |
| echo "Dependencies installed successfully" >> $GITHUB_STEP_SUMMARY | |
| working-directory: pns-app | |
| env: | |
| NODE_ENV: development | |
| - name: 🔍 Run ESLint | |
| run: | | |
| npm run lint | |
| echo "### 🔍 ESLint Results" >> $GITHUB_STEP_SUMMARY | |
| echo "ESLint check completed" >> $GITHUB_STEP_SUMMARY | |
| working-directory: pns-app | |
| continue-on-error: true | |
| - name: 📝 Type check | |
| run: | | |
| npm run type-check || npm run tsc | |
| echo "### 📝 TypeScript Check" >> $GITHUB_STEP_SUMMARY | |
| echo "TypeScript type checking completed" >> $GITHUB_STEP_SUMMARY | |
| working-directory: pns-app | |
| continue-on-error: true | |
| - name: 🚨 Check for build errors | |
| run: | | |
| npm run build | |
| echo "### 🚨 Build Status" >> $GITHUB_STEP_SUMMARY | |
| echo "Build completed successfully" >> $GITHUB_STEP_SUMMARY | |
| working-directory: pns-app | |
| env: | |
| NODE_ENV: production | |
| continue-on-error: true | |
| - name: 🔍 Security audit | |
| run: | | |
| npm audit | |
| echo "### 🔍 Security Audit" >> $GITHUB_STEP_SUMMARY | |
| echo "Security audit completed" >> $GITHUB_STEP_SUMMARY | |
| working-directory: pns-app | |
| continue-on-error: true | |
| - name: 📦 Check for outdated dependencies | |
| run: | | |
| npm outdated | |
| echo "### 📦 Dependency Status" >> $GITHUB_STEP_SUMMARY | |
| echo "Dependency version check completed" >> $GITHUB_STEP_SUMMARY | |
| working-directory: pns-app | |
| continue-on-error: true |