Skip to content

refactor: make deleteInMemoryBlockedKeys method optional #34

refactor: make deleteInMemoryBlockedKeys method optional

refactor: make deleteInMemoryBlockedKeys method optional #34

Workflow file for this run

name: test
on:
- push
- pull_request
jobs:
lint:
uses: adonisjs/.github/.github/workflows/lint.yml@main
typecheck:
uses: adonisjs/.github/.github/workflows/typecheck.yml@main
test-postgres:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 21]
postgres-version: [11]
services:
postgres:
image: postgres:${{ matrix.postgres-version }}
env:
POSTGRES_DB: limiter
POSTGRES_USER: virk
POSTGRES_PASSWORD: secret
ports:
- 5432:5432
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Install
run: npm install
- name: Run Postgres Tests
run: npm run test:pg
test-mysql:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mysql: [{ version: '8.0', command: 'mysql' }]
node-version: [21]
services:
mysql:
image: mysql:${{ matrix.mysql.version }}
env:
MYSQL_DATABASE: limiter
MYSQL_USER: virk
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
MYSQL_PORT: 3306
ports:
- '3306:3306'
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Mysql Tests
run: npm run test:${{ matrix.mysql.command }}