Migrate all gateways from old REST API to AMP protocol #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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install root dependencies | |
| run: npm install | |
| - name: Lint | |
| run: npm run lint | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| gateway: [discord-gateway, slack-gateway, email-gateway, whatsapp-gateway] | |
| defaults: | |
| run: | |
| working-directory: ${{ matrix.gateway }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: ${{ matrix.gateway }}/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check | |
| run: npm run typecheck --if-present | |
| - name: Test | |
| run: npm test --if-present |