Skip to content

Commit

Permalink
fix: updates to the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ludtkemorgan committed Mar 12, 2024
1 parent eeb50d0 commit b53e02a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"db:seed:staging": "npx prisma db seed -- --environment staging",
"db:seed:development": "npx prisma db seed -- --environment development --jurisdictionName 'Bay Area'",
"db:reseed:with-external:dev": "yarn db:setup:staging && IMPORT_ENV=dev yarn db:import-listings",
"db:reseed:ci": "SUPPRESS_NOTICE=true PGDATABASE=template1 yarn db:setup:staging",
"generate:client": "ts-node scripts/generate-axios-client.ts && prettier -w ../shared-helpers/src/types/backend-swagger.ts",
"test:e2e": "yarn db:resetup && yarn db:migration:run && jest --config ./test/jest-e2e.config.js",
"db:setup": "yarn db:resetup && yarn db:migration:run && yarn db:seed:development",
Expand Down
5 changes: 3 additions & 2 deletions ci/buildspec/build_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ phases:
- export ECR_HOST="${ECR_ACCOUNT_ID}.dkr.ecr.${ECR_REGION}.amazonaws.com"
- export ECR_REPO="${ECR_HOST}/${ECR_NAMESPACE}"

- docker build . -f build/docker/Dockerfile.backend --target test -t backend/core:test
- docker run backend/core:test yarn test
# Skip the test step as it is handle before merge. But re-add if you want more verification
# - docker build . -f build/docker/Dockerfile.backend --target test -t backend/core:test
# - docker run backend/core:test yarn test
- docker build . -f build/docker/Dockerfile.backend --target run -t backend/core:run-candidate
- docker build . -f build/docker/Dockerfile.backend --target migrate -t backend/core:migrate-candidate

Expand Down

0 comments on commit b53e02a

Please sign in to comment.