Skip to content

Commit

Permalink
add init script for sqs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRamosAcosta committed Aug 18, 2024
1 parent 3fe7463 commit 9bedcf1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
run: yarn install --frozen-lockfile
- name: Tests
run: |
yarn queue:init
yarn test:ci --shard=${{ matrix.shard }}/${{ strategy.job-total }}
env:
DB_HOST: database
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ jobs:
--health-retries 5
ports:
- 27017:27017
volumes:
- ${{ github.workspace }}/init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh
aws:
image: localstack/localstack
env:
Expand All @@ -86,6 +84,7 @@ jobs:
run: yarn install --frozen-lockfile
- name: Tests
run: |
yarn queue:init
yarn test:ci --shard=${{ matrix.shard }}/${{ strategy.job-total }}
env:
DB_HOST: db
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"test:integration:third-party": "jest -c test/config/integration-third-party.json",
"test:e2e:memory": "jest --config ./test/config/e2e-memory.json",
"test:e2e:db": "jest --config ./test/config/e2e-db.json",
"queue:init": "ts-node src/sqs.ts",
"precommit": "yarn typecheck && yarn format:fix && yarn lint:fix",
"run-checks": "yarn typecheck && yarn format:check && yarn lint:check"
},
Expand Down
5 changes: 5 additions & 0 deletions src/sqs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { EventBusSQS } from './shared/infrastructure/events/EventBus/EventBusSQS'

// eslint-disable-next-line
const eventBus = new EventBusSQS(null as any)
eventBus.createQueue()

0 comments on commit 9bedcf1

Please sign in to comment.