From 5f437157fe26d8f2913d0c9199c149dcb2ad9a4f Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Wed, 20 Sep 2023 13:19:32 -0300 Subject: [PATCH] chore: Run quick-start guide in CI (#2413) So that it doesn't run out of sync [again](https://github.com/AztecProtocol/aztec-packages/pull/2412). --- .circleci/config.yml | 12 ++++++++++++ .../src/guides/up_quick_start.test.ts | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 yarn-project/end-to-end/src/guides/up_quick_start.test.ts diff --git a/.circleci/config.yml b/.circleci/config.yml index 56c7c46b84c..ae14946c3d8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1024,6 +1024,16 @@ jobs: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local sample-dapp ./scripts/docker-compose-e2e-sandbox.yml + guides-up-quick-start: + machine: + image: ubuntu-2004:202010-01 + steps: + - *checkout + - *setup_env + - run: + name: "Test" + command: cond_run_script end-to-end ./scripts/run_tests_local guides/up_quick_start.test.ts ./scripts/docker-compose-e2e-sandbox.yml + e2e-canary-test: machine: image: ubuntu-2004:202010-01 @@ -1499,6 +1509,7 @@ workflows: - guides-writing-an-account-contract: *e2e_test - guides-dapp-testing: *e2e_test - guides-sample-dapp: *e2e_test + - guides-up-quick-start: *e2e_test - e2e-end: requires: @@ -1535,6 +1546,7 @@ workflows: - guides-writing-an-account-contract - guides-dapp-testing - guides-sample-dapp + - guides-up-quick-start <<: *defaults # Deployment and Canary tests diff --git a/yarn-project/end-to-end/src/guides/up_quick_start.test.ts b/yarn-project/end-to-end/src/guides/up_quick_start.test.ts new file mode 100644 index 00000000000..d544381b256 --- /dev/null +++ b/yarn-project/end-to-end/src/guides/up_quick_start.test.ts @@ -0,0 +1,17 @@ +import { waitForSandbox } from '@aztec/aztec.js'; + +import { execSync } from 'child_process'; + +// Entrypoint for running the up-quick-start script on the CI +describe('guides/up_quick_start', () => { + it('works', async () => { + await waitForSandbox(); + execSync( + `DEBUG="aztec:*" AZTEC_RPC_HOST=\${SANDBOX_URL:-http://localhost:8080} PATH=$PATH:../node_modules/.bin ./src/guides/up_quick_start.sh`, + { + shell: '/bin/bash', + stdio: 'pipe', + }, + ); + }, 90_000); +});