This repository was archived by the owner on Nov 19, 2025. It is now read-only.
SYNC-41: Node 22 upgrade #39
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: "hapi-rate-limiter" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| ci: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis:3.2-alpine | |
| # defaults to localhost:6379 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 6379:6379 | |
| strategy: | |
| matrix: | |
| node-version: [12, 14, 16, 18, 20, 22] | |
| fail-fast: false | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Use Node ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: npm install --silent | |
| - name: Run tests | |
| run: npm test | |
| env: | |
| REDIS_HOST: localhost | |
| REDIS_PORT: 6379 |