Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST] changing something trivial so we can trigger the PR flow #6

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,18 @@ jobs:
with:
fetch-depth: 0

- uses: KengoTODA/actions-setup-docker-compose@v1
with:
version: '2.29.1'

# This enables task distribution via Nx Cloud
# Run this command as early as possible, before dependencies are installed
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
- run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"

- run: docker-compose up -d

# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci --legacy-peer-deps && (cd apps/api-gateway; npm ci) && (cd apps/api-gateway/lambda/local-proxy; npm ci)
- run: npm i --legacy-peer-deps && (cd apps/api-gateway; npm i) && (cd apps/api-gateway/lambda/local-proxy; npm i)

- uses: nrwl/nx-set-shas@v4

Expand All @@ -45,4 +39,10 @@ jobs:
# NX_CLOUD_DISTRIBUTED_EXECUTION=false from this command.
- run: NX_CLOUD_DISTRIBUTED_EXECUTION=false npx nx affected -t lint build

- uses: KengoTODA/actions-setup-docker-compose@v1
with:
version: '2.29.1'

- run: docker-compose up -d

- run: NX_CLOUD_DISTRIBUTED_EXECUTION=false npx nx run-many -t test --coverage --passWithNoTests
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Repository for the Microservices API backend of the TerraMatch service
TBD. The ApiGateway has been tested to be at least functional on AWS. Tooling around deployment will be
handled in a future ticket.


# Database work
For now, Laravel is the source of truth for all things related to the DB schema. As such, TypeORM is not allowed to modify the
schema, and is expected to interface with exactly the schema that is managed by Laravel. This note is included in user.entity.ts,
Expand Down
2 changes: 1 addition & 1 deletion apps/api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"scripts": {
"build-local-proxy": "(cd lambda/local-proxy; npm run build)",
"synth-local": "cdk synth --no-staging --quiet",
"synth-local": "npx cdk synth --no-staging --quiet",
"build": "npm run build-local-proxy && npm run synth-local",
"serve": "DOCKER_HOST=unix://$HOME/.docker/run/docker.sock sam local start-api -t ./cdk.out/ApiGatewayStack.template.json -p 4000"
},
Expand Down
Loading