firebase functions node20 migration #64
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: Build & Verify | |
| on: | |
| push: | |
| branches: [ "main" ] # Runs on every push to main branch | |
| jobs: | |
| build: | |
| # Currently runs on macOS only, can add windows-latest later | |
| runs-on: macos-latest | |
| steps: | |
| - name: π Checkout code | |
| uses: actions/checkout@v4 | |
| - name: βοΈ Setup Node.js environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' # Node.js version compatible with project | |
| cache: 'npm' # npm dependency caching for speed improvement | |
| - name: π¦ Install root dependencies | |
| run: npm install | |
| - name: π Install and build web (Renderer) part | |
| # Move to pickleglass_web directory and run commands | |
| working-directory: ./pickleglass_web | |
| run: | | |
| npm install | |
| npm run build | |
| - name: π₯οΈ Build Electron app | |
| # Run Electron build script from root directory | |
| run: npm run build | |
| - name: π¨ Send failure notification to Slack | |
| if: failure() | |
| uses: rtCamp/action-slack-notify@v2 | |
| env: | |
| SLACK_CHANNEL: general | |
| SLACK_TITLE: "π¨ Build Failed" | |
| SLACK_MESSAGE: "π Build failed for `${{ github.repository }}` repo on main branch." | |
| SLACK_COLOR: 'danger' | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | |