ci: test new ghars on ethos ccc in dev #3063
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E tests | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "example/**" | |
- "packages/**" | |
- ".github/**" | |
- "cypress/**" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "example/**" | |
- "packages/**" | |
- ".github/**" | |
- "cypress/**" | |
jobs: | |
smoke_tests: | |
container: | |
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: | |
start: yarn dev:https:ci | |
wait-on: 'https://localhost.corp.adobe.com:9000' | |
wait-on-timeout: 150 | |
browser: chrome | |
config-file: cypress.config.js | |
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' |