fix(mqtt,dm): fix sequence ID sync extraction, ForcedFetch DM payload… #40
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: Floppa-Chatbot CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| inputs: | |
| node_version: | |
| description: 'Node.js version' | |
| required: false | |
| type: choice | |
| options: | |
| - '22' | |
| - '20' | |
| default: '22' | |
| run_syntax_checks: | |
| description: 'Run syntax check on core engine, commands and events' | |
| required: false | |
| type: boolean | |
| default: true | |
| run_full_diagnostics: | |
| description: 'Run full diagnostic test suite' | |
| required: false | |
| type: boolean | |
| default: true | |
| jobs: | |
| test-and-validate: | |
| name: Build, Syntax & Diagnostic Verification | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Source Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js Environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ inputs.node_version || '22' }} | |
| - name: Install System Dependencies for Native Addons | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev | |
| - name: Cache Node Modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install Dependencies | |
| run: npm install && npm rebuild sqlite3 canvas bcrypt | |
| - name: Core System Syntax Verification | |
| if: ${{ inputs.run_syntax_checks != false }} | |
| run: | | |
| node --check index.js Floppa.js Goat.js utils.js | |
| node --check bot/login/login.js bot/login/checkLiveCookie.js | |
| node --check bot/handler/handlerAction.js bot/handler/handlerEvents.js | |
| node --check dashboard/app.js dashboard/routes/api.js | |
| - name: All Commands Syntax Check | |
| if: ${{ inputs.run_syntax_checks != false }} | |
| run: for file in scripts/cmds/*.js; do node --check "$file"; done | |
| - name: All Events Syntax Check | |
| if: ${{ inputs.run_syntax_checks != false }} | |
| run: for file in scripts/events/*.js; do node --check "$file"; done | |
| - name: FCA Engine Unit Tests | |
| run: cd fca && npm test | |
| - name: Run Full Diagnostic Test Suite | |
| if: ${{ inputs.run_full_diagnostics != false }} | |
| run: node scripts/test_cli_runner.js |