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

Refactor Alloy Prod Upstreams Workflow #1159

Merged
merged 7 commits into from
Sep 5, 2024
Merged
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
12 changes: 9 additions & 3 deletions .github/workflows/ee-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ on:
description: "Log level"
required: true
default: "warning"
edgeBasePath:
description: "Edge Base Path"
required: false
default: "ee"
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SAUCE_CAPABILITIES_OVERRIDES_PATH: "sauceLabsCapabilities.json"
ALLOY_ENV: prod
EDGE_BASE_PATH: ee
EDGE_BASE_PATH: ${{ github.event.inputs.edgeBasePath }}

jobs:
store-sauce-configs:
Expand Down Expand Up @@ -60,7 +64,7 @@ jobs:
id: npm-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}-${{ secrets.NPM_CACHE_VERSION }} # increment NPM_CACHE_VERSION secret to force cache reset
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}-${{ secrets.NPM_CACHE_VERSION }}

- name: Download sauce config into tags
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -96,6 +100,7 @@ jobs:
- uses: saucelabs/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
EDGE_BASE_PATH: ${{ github.event.inputs.edgeBasePath }}
with:
sauce-username: ${{ secrets.SAUCE_USERNAME }}
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }}
Expand All @@ -105,4 +110,5 @@ jobs:
ALLOY_PROD_VERSION=${{ env.PACKAGE_VERSION }}
NPM_PACKAGE_VERSION=${{ env.PACKAGE_VERSION }}
ALLOY_ENV=prod
config-file: ./.sauce/ee-prd.yml
EDGE_BASE_PATH=${{ github.event.inputs.edgeBasePath }}
config-file: ./.sauce/ee-prd.yml
28 changes: 10 additions & 18 deletions .sauce/ee-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ kind: testcafe
showConsoleLog: true
sauce:
region: us-west-1
retries: 2
metadata:
name: Alloy SDK Prod ee
rootDir: ./
env:
ALLOY_ENV: prod
EDGE_BASE_PATH: ee
EDGE_BASE_PATH: ${EDGE_BASE_PATH:ee}
ALLOY_PROD_VERSION: $ALLOY_PROD_VERSION
NPM_PACKAGE_VERSION: $NPM_PACKAGE_VERSION
testcafe:
Expand All @@ -21,26 +20,18 @@ disablePageCaching: true
timeZone: New_York
npm:
dependencies:
- node-fetch
- parse-uri
- js-cookie
- read-cache
- uuid
- css.escape
- "@adobe/reactor-load-script"
- "@adobe/reactor-cookie"
- "@adobe/reactor-query-string"
- "@adobe/reactor-promise"
- "@adobe/reactor-object-assign"
suites:
- name: "Edge"
browserName: "microsoftedge"
headless: true
browserVersion: "119"
src:
- "test/functional/specs/**/*.js"
platformName: "Windows 11"
excludedTestFiles:
[
"test/functional/specs/Personalization/C782718.js",
"test/functional/specs/Privacy/C5594870.js",
"test/functional/specs/Personalization/C8631577.js",
]
- name: "Safari"
browserName: "safari"
headless: true
Expand All @@ -66,15 +57,16 @@ suites:
excludedTestFiles: ["test/functional/specs/Privacy/C5594870.js"]
- name: "Chrome"
browserName: "chrome"
headless: true
browserVersion: "latest"
src:
- "test/functional/specs/**/*.js"
platformName: "Windows 11"
excludedTestFiles:
[
"test/functional/specs/Data Collector/C81182.js",
"test/functional/specs/Privacy/C5594870.js",
"test/functional/specs/Personalization/C7494472.js",
"test/functional/specs/Personalization/C8631576.js",
"test/functional/specs/Personalization/C8631577.js",
"test/functional/specs/Privacy/C1576777.js",
"test/functional/specs/Audiences/C12411.js",
"test/functional/specs/Audiences/C31436.js",
]
Loading