Skip to content

Commit

Permalink
ci: update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Nov 28, 2023
1 parent 8299621 commit 4280658
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions buildspec-e2e-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ phases:
- export PATH=$PATH:$HOME/.pulumi/bin
- pulumi version
- yarn install && yarn install --cwd=infra && yarn install --cwd=website && yarn install --cwd=tests
- cd tests && npx playwright install --with-deps && cd ..
- cd e2e/tests && npx playwright install --with-deps && cd ../..
- TAG=$CODEBUILD_SOURCE_VERSION UNPACK_TO_DIST=true node scripts/downloadGithubRelease.mjs
pre_build:
commands:
- pwd
- pulumi version
- cd website && yarn build && cd ../
- cd infra/lambda && pulumi stack init e2e && pulumi stack select e2e && cd ../../
- cd infra/cloudfront && pulumi stack init e2e && pulumi stack select e2e && cd ../../
- cd infra && yarn lambda:up && yarn lambda:export && yarn cloudfront:up && yarn cloudfront:export && cd ../
- cd e2e/website && yarn build && cd ../
- 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 && yarn lambda:up && yarn lambda:export && yarn cloudfront:up && yarn cloudfront:export && cd ../..
build:
commands:
- ls -a
- cd tests && yarn test
- cd e2e/tests && yarn test
finally:
- cd ../
- cd ../..
- echo $CODEBUILD_BUILD_SUCCEEDING
- echo $COMMIT_SHA
- export STATUS=$(sh ./scripts/get-codebuild-status.sh)
Expand All @@ -50,4 +50,4 @@ phases:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/fingerprintjs/fingerprint-pro-cloudfront-integration/statuses/$COMMIT_SHA \
-d "{\"state\":\"$STATUS\",\"target_url\":\"https://us-east-1.console.aws.amazon.com/codesuite/codebuild/708050157146/projects/fpjs-dev-cloudfront-lambda-e2e-tests/build/$CODEBUILD_BUILD_ID/?region=us-east-1\",\"description\":\"E2E tests for release finished\",\"context\":\"e2e-release\"}"
- cd infra && yarn cloudfront:destroy && yarn lambda:destroy && cd ../
- cd e2e/infra && yarn cloudfront:destroy && yarn lambda:destroy && cd ../..

0 comments on commit 4280658

Please sign in to comment.