File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 runs-on : ubuntu-latest
2424 environment : e2e-testing
2525 timeout-minutes : 60
26+ strategy :
27+ fail-fast : false
28+ matrix :
29+ cdk-source : [npm, main]
2630 steps :
2731 - uses : actions/checkout@v6
2832 with :
@@ -52,11 +56,26 @@ jobs:
5256 parse-json-secrets : true
5357 - run : npm ci
5458 - run : npm run build
55- - name : Run E2E tests
59+ - name : Build CDK package from main
60+ if : matrix.cdk-source == 'main'
61+ run : |
62+ git clone --depth 1 "https://x-access-token:${CDK_REPO_TOKEN}@github.com/${CDK_REPO}.git" /tmp/cdk-repo
63+ cd /tmp/cdk-repo
64+ npm ci
65+ npm run build
66+ TARBALL=$(npm pack --pack-destination "$RUNNER_TEMP" | tail -1)
67+ echo "CDK_TARBALL=$RUNNER_TEMP/$TARBALL" >> "$GITHUB_ENV"
68+ env :
69+ CDK_REPO_TOKEN : ${{ secrets.CDK_REPO_TOKEN }}
70+ CDK_REPO : ${{ secrets.CDK_REPO_NAME }}
71+ - name : Install CLI globally
72+ run : npm install -g "$(npm pack | tail -1)"
73+ - name : Run E2E tests (${{ matrix.cdk-source }})
5674 env :
5775 AWS_ACCOUNT_ID : ${{ steps.aws.outputs.account_id }}
5876 AWS_REGION : ${{ inputs.aws_region || 'us-east-1' }}
5977 ANTHROPIC_API_KEY : ${{ env.E2E_ANTHROPIC_API_KEY }}
6078 OPENAI_API_KEY : ${{ env.E2E_OPENAI_API_KEY }}
6179 GEMINI_API_KEY : ${{ env.E2E_GEMINI_API_KEY }}
80+ CDK_TARBALL : ${{ env.CDK_TARBALL }}
6281 run : npm run test:e2e
You can’t perform that action at this time.
0 commit comments