diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 710f0b4a..9ffdc494 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index ac18e255..64ef6fd0 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -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: @@ -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 diff --git a/package.json b/package.json index 66fff01b..2d2d19be 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/sqs.ts b/src/sqs.ts new file mode 100644 index 00000000..7486a831 --- /dev/null +++ b/src/sqs.ts @@ -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()