-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildspec-e2e-rc.yml
35 lines (34 loc) · 1.14 KB
/
buildspec-e2e-rc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: 0.2
phases:
install:
runtime-versions:
nodejs: 20
commands:
- npm i -g pnpm
- echo $COMMIT_ID
- echo $CODEBUILD_SOURCE_VERSION
- echo $CODEBUILD_BUILD_ID
- echo $CODEBUILD_PUBLIC_BUILD_URL
- ls -a
- curl -fsSL https://get.pulumi.com | sh
- export PATH=$PATH:$HOME/.pulumi/bin
- pulumi version
- pnpm install
- cd e2e/tests && npx playwright install --with-deps && cd -
- pnpm -C e2e/website install && pnpm -C e2e/website build
- UNPACK_TO_DIST=true node scripts/downloadGithubRelease.mjs
pre_build:
commands:
- pwd
- pulumi version
- cd e2e/infra/lambda && pulumi stack init e2e && pulumi stack select e2e && cd -
- cd e2e/infra/cloudfront && pulumi stack init e2e && pulumi stack select e2e && cd -
- cd e2e/infra && pnpm run lambda:up && pnpm run lambda:export && pnpm run cloudfront:up && pnpm run cloudfront:export && cd -
build:
commands:
- ls -a
- cd e2e/tests && pnpm test
finally:
- cd -
- echo $COMMIT_ID
- cd e2e/infra && pnpm cloudfront:destroy && pnpm lambda:destroy && cd -