From 428065874354f263effebfb539a82ac59899064c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=BBydek?= Date: Tue, 28 Nov 2023 16:07:34 +0200 Subject: [PATCH] ci: update paths --- buildspec-e2e-rc.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/buildspec-e2e-rc.yml b/buildspec-e2e-rc.yml index 04bd26c5..d20c5dfa 100644 --- a/buildspec-e2e-rc.yml +++ b/buildspec-e2e-rc.yml @@ -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) @@ -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 ../..