diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 7165ef7423..268ac7bfdb 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -19,13 +19,27 @@ on: jobs: smoke_tests: container: - image: cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 - options: --user root - runs-on: self-hosted + credentials: + username: dcartfy + # This secret was added as a repository action secret manually. The + # secret will eventually be managed via Terraform in a `glb/github/glb` + # configuration in Developer Website's infrastructure repository. + password: ${{ secrets.ADOBE_ARTIFACTORY_CORP_API_KEY_DCARTFY }} + image: docker-hub-remote.dr.corp.adobe.com/cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 + options: --user 1001 + runs-on: developer-website-arc-dev-runners-aat steps: - name: Checkout uses: actions/checkout@v4 + # - name: Setup Node + # uses: actions/setup-node@v4 + # with: + # node-version: 16 + + # - name: Setup Yarn + # run: npm install --global yarn@1.22.22 + - name: 'Create env file' run: | touch ./example/.env @@ -33,6 +47,10 @@ jobs: echo GATSBY_IMS_CONFIG='{"client_id": "stage_adobe_io", "scope": "AdobeID,openid,unified_dev_portal,read_organizations,additional_info.projectedProductContext,additional_info.roles,gnav,read_pc.dma_bullseye,creative_sdk,adobeio_api,service_principals.read,service_principals.write,read_client_secret", "environment": "stg1"}' >> ./example/.env cat ./example/.env + - name: Pause workflow for investigation + if: ${{ always() }} + run: sleep 600 + - name: Run Tests uses: cypress-io/github-action@v5 with: @@ -44,5 +62,7 @@ jobs: spec: | cypress/e2e/smoke.cy.js cypress/e2e/get-credentials.cy.js + # tag: node-16 env: NODE_TLS_REJECT_UNAUTHORIZED: '0' + NODE_OPTIONS: '--max-old-space-size=16384' diff --git a/package.json b/package.json index d212516af1..e65622e808 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "dev:clean": "yarn workspace example clean && yarn workspace example develop", "dev:https": "yarn workspace example develop:https", "dev:https:local": "yarn workspace example gatsby develop --https --host local.corp.adobe.com", - "dev:https:ci": "yarn workspace example develop --https --host localhost.corp.adobe.com --port 9000 --key-file ./certs/key.key --cert-file ./certs/cert.crt", + "dev:https:ci": "yarn workspace example develop --https --host localhost.corp.adobe.com --port 9000 --key-file ./certs/key.key --cert-file ./certs/cert.crt --verbose", "dev:schema": "yarn workspace example develop:schema", "build": "yarn workspace example build", "build:incremental": "GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES=true yarn workspace example build --log-pages",