From adf7836a65605bbcbaf5096190f721bf31ff46a0 Mon Sep 17 00:00:00 2001 From: Ahmad Azizi <91204996+its-aazizi@users.noreply.github.com> Date: Mon, 12 Aug 2024 17:54:36 +0500 Subject: [PATCH] test cypress against local server --- .github/workflows/e2e-tests.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 0851f748..aa3b27cd 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -39,17 +39,23 @@ jobs: echo "VITE_PRICING_PAGE=${{ secrets.VITE_PRICING_PAGE }}" >> .env echo "VITE_CUSTOM_ASSETS_URL=${{ secrets.VITE_CUSTOM_ASSETS_URL }}" >> .env - - name: Clone the amazon-location-web-marketing repository - run: | - mkdir -p ../amazon-location-web-marketing-temp - git clone --branch main https://${{ secrets.GH_USERNAME }}:${{ secrets.GH_PAT }}@github.com/aws-geospatial/amazon-location-web-marketing.git ../amazon-location-web-marketing-temp + # - name: Clone the amazon-location-web-marketing repository + # run: | + # mkdir -p ../amazon-location-web-marketing-temp + # git clone --branch main https://${{ secrets.GH_USERNAME }}:${{ secrets.GH_PAT }}@github.com/aws-geospatial/amazon-location-web-marketing.git ../amazon-location-web-marketing-temp + + # - name: Create build + # run: npm run create-build-with-demo-lib - - name: Create build - run: npm run create-build-with-demo-lib + # - name: Run build + # run: | + # npm run start-build & + # echo "Server started" + # sleep 10 - - name: Run build + - name: Run local server run: | - npm run start-build & + npm run dev & echo "Server started" sleep 10