-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #227 from IKatsuba/local-development
local-development
- Loading branch information
Showing
5 changed files
with
105 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,27 @@ jobs: | |
npx nx affected --target=lint --parallel=3 | ||
npx nx affected --target=test --parallel=3 --ci --code-coverage | ||
npx nx affected --target=build --parallel=3 | ||
e2e: | ||
name: Nx Cloud - E2E Job | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: | | ||
npm ci | ||
npx nx build api -c=production | ||
- name: Docker Compose | ||
run: | | ||
docker-compose -f compose.test.yml up -d | ||
npx -y wait-on http://localhost:3000/ping | ||
- name: Run E2E tests | ||
run: | | ||
npx nx e2e api-e2e | ||
- name: Docker Compose down | ||
run: | | ||
docker-compose -f compose.test.yml down | ||
agents: | ||
name: Nx Cloud - Agents | ||
uses: nrwl/ci/.github/workflows/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
services: | ||
api: | ||
build: | ||
context: . | ||
dockerfile: apps/api/Dockerfile | ||
ports: | ||
- 3000:3000 | ||
environment: | ||
- PORT=3000 | ||
- DB_HOST=postgres | ||
- DB_PORT=5432 | ||
- DB_USER=postgres | ||
- DB_PASSWORD=postgres | ||
- DB_NAME=postgres | ||
- JWT_SECRET=secret | ||
- AWS_S3_ENDPOINT_URL=http://s3:9000 | ||
- AWS_ACCESS_KEY_ID=minio | ||
- AWS_SECRET_ACCESS_KEY=minio123 | ||
- AWS_S3_BUCKET_NAME=nx-cloud | ||
- AWS_REGION=us-east-1 | ||
postgres: | ||
image: postgres:12.1 | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: postgres | ||
ports: | ||
- 5432:5432 | ||
s3: | ||
image: minio/minio | ||
entrypoint: sh -c "minio server /data --console-address ':9001'" | ||
environment: | ||
MINIO_ROOT_USER: minio | ||
MINIO_ROOT_PASSWORD: minio123 | ||
MINIO_DOMAIN: localhost | ||
ports: | ||
- 9000:9000 | ||
- 9001:9001 | ||
create-bucket-and-user: | ||
image: minio/mc | ||
entrypoint: sh -c "mc config host add minio http://s3:9000 minio minio123 && mc mb minio/nx-cloud && mc anonymous set public minio/nx-cloud" | ||
depends_on: | ||
- s3 | ||
environment: | ||
MINIO_ACCESS_KEY: minio | ||
MINIO_SECRET_KEY: minio123 |
File renamed without changes.