Skip to content

Commit

Permalink
chore: Run quick-start guide in CI (#2413)
Browse files Browse the repository at this point in the history
So that it doesn't run out of sync
[again](#2412).
  • Loading branch information
spalladino authored Sep 20, 2023
1 parent 34ed663 commit 5f43715
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions yarn-project/end-to-end/src/guides/up_quick_start.test.ts
Original file line number Diff line number Diff line change
@@ -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);
});

0 comments on commit 5f43715

Please sign in to comment.