Skip to content

Commit

Permalink
Merge pull request #234 from Daniel-97/feature/dynamo-db-store-implem…
Browse files Browse the repository at this point in the history
…entation

Feature/dynamo db store implementation
  • Loading branch information
animir authored Dec 16, 2023
2 parents 58a71ab + abe8fa9 commit fc666f3
Show file tree
Hide file tree
Showing 7 changed files with 757 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

concurrency:
group: test-${{ github.ref }}
Expand All @@ -30,15 +31,21 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4.0.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.8.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: ./package.json

- name: Start Redis
uses: supercharge/redis-github-action@1.7.0
with:
redis-version: ${{ matrix.redis-version }}

- name: Start DynamoDB local
uses: rrainn/dynamodb-action@v3.0.0

- run: npm install
- run: npm run test
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const RateLimiterUnion = require('./lib/RateLimiterUnion');
const RateLimiterQueue = require('./lib/RateLimiterQueue');
const BurstyRateLimiter = require('./lib/BurstyRateLimiter');
const RateLimiterRes = require('./lib/RateLimiterRes');
const RateLimiterDynamo = require('./lib/RateLimiterDynamo');

module.exports = {
RateLimiterRedis,
Expand All @@ -26,4 +27,5 @@ module.exports = {
RateLimiterQueue,
BurstyRateLimiter,
RateLimiterRes,
RateLimiterDynamo
};
Loading

0 comments on commit fc666f3

Please sign in to comment.