File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 6
6
nodejs : 20
7
7
commands :
8
8
- npm i -g pnpm
9
- - export COMMIT_SHA=$(cat meta.json | jq -r '.sha')
9
+ - # export COMMIT_SHA=$(cat meta.json | jq -r '.sha')
10
+ - export COMMIT_SHA=$(git rev-parse HEAD)
10
11
- echo $COMMIT_SHA
11
12
- echo $CODEBUILD_BUILD_ID
12
13
- echo $CODEBUILD_PUBLIC_BUILD_URL
@@ -20,16 +21,17 @@ phases:
20
21
- ls -lah
21
22
- pulumi version
22
23
- pnpm install
23
- - pnpm -C website install && pnpm -C website build
24
- - cd tests && pnpm install && npx playwright install --with-deps && cd ..
25
- - cd infra/lambda && pnpm install && pulumi stack init e2e && pulumi stack select e2e && cd ../../
26
- - cd infra/cloudfront && pnpm install && pulumi stack init e2e && pulumi stack select e2e && cd ../../
27
- - cd infra && pnpm install && pnpm run lambda:up && pnpm run lambda:export && pnpm run cloudfront:up && pnpm run cloudfront:export && cd ../
24
+ - pnpm build
25
+ - cp -r dist e2e
26
+ - pnpm -C e2e/website install && pnpm -C website build
27
+ - cd e2e/tests && pnpm install && npx playwright install --with-deps && cd -
28
+ - cd e2e/infra/lambda && pnpm install && pulumi stack init e2e && pulumi stack select e2e && cd -
29
+ - cd e2e/infra/cloudfront && pnpm install && pulumi stack init e2e && pulumi stack select e2e && cd -
30
+ - cd e2e/infra && pnpm install && pnpm run lambda:up && pnpm run lambda:export && pnpm run cloudfront:up && pnpm run cloudfront:export && cd -
28
31
build :
29
32
commands :
30
33
- ls -a
31
- - cd tests && pnpm test
34
+ - cd e2e/ tests && pnpm test && cd -
32
35
finally :
33
- - cd ../
34
36
- echo $COMMIT_SHA
35
- - cd infra && pnpm cloudfront:destroy && pnpm lambda:destroy && cd ../
37
+ - cd e2e/ infra && pnpm cloudfront:destroy && pnpm lambda:destroy && cd -
You can’t perform that action at this time.
0 commit comments