Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: test new ghars on ethos ccc in dev #1626

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,38 @@ 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
echo GATSBY_IMS_SRC="https://auth-stg1.services.adobe.com/imslib/imslib.min.js" >> ./example/.env
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:
Expand All @@ -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'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading