-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'stage' into MWPW-158446-domains-map
- Loading branch information
Showing
25 changed files
with
213 additions
and
136 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
name: Floodgate Repo Sync | ||
|
||
on: | ||
push: | ||
branches: | ||
- stage | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
syncBranch: | ||
|
@@ -28,7 +32,7 @@ jobs: | |
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.syncBranch }} | ||
ref: ${{ inputs.syncBranch || github.ref_name }} | ||
|
||
- name: Clone Floodgate Repository and Checkout Selected Branch | ||
run: | | ||
|
@@ -41,7 +45,7 @@ jobs: | |
echo "bacom branch" | ||
git branch | ||
env: | ||
FG_SYNC_BRANCH: ${{ inputs.syncBranch }} | ||
FG_SYNC_BRANCH: ${{ inputs.syncBranch || github.ref_name }} | ||
|
||
- name: Overwrite floodgate repo files with latest from source repo | ||
run: | | ||
|
@@ -54,14 +58,19 @@ jobs: | |
git branch | ||
git config user.email "$FG_SYNC_BOT_EMAIL" | ||
git config user.name "$FG_SYNC_BOT_NAME" | ||
git status | ||
git remote set-url origin https://oauth2:[email protected]/adobecom/bacom-pink.git | ||
git remote -v | ||
git add . | ||
git commit -m "Syncing bacom to bacom-pink" | ||
git push origin $FG_SYNC_BRANCH --force | ||
git status | ||
if [[ -n $(git status -s) ]]; then | ||
git remote set-url origin https://oauth2:[email protected]/adobecom/bacom-pink.git | ||
git remote -v | ||
git add . | ||
git commit -m "Syncing bacom to bacom-pink" | ||
git push origin $FG_SYNC_BRANCH --force | ||
echo ":heavy_check_mark: Syncing branch $FG_SYNC_BRANCH on bacom to bacom-pink completed successfully." >> $GITHUB_STEP_SUMMARY | ||
else | ||
echo ":heavy_minus_sign: No changes detected on branch $FG_SYNC_BRANCH, nothing to sync." >> $GITHUB_STEP_SUMMARY | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
FG_SYNC_BOT_EMAIL: ${{ secrets.FG_SYNC_BOT_EMAIL }} | ||
FG_SYNC_BOT_NAME: ${{ secrets.FG_SYNC_BOT_NAME }} | ||
FG_SYNC_BRANCH: ${{ inputs.syncBranch }} | ||
FG_SYNC_BRANCH: ${{ inputs.syncBranch || github.ref_name }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
name: Graybox Repo Sync | ||
|
||
on: | ||
push: | ||
branches: | ||
- stage | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
syncBranch: | ||
|
@@ -10,6 +14,7 @@ on: | |
type: choice | ||
options: | ||
- 'stage' | ||
- 'main' | ||
|
||
jobs: | ||
build: | ||
|
@@ -28,7 +33,7 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
ref: ${{ inputs.syncBranch }} | ||
ref: ${{ inputs.syncBranch || github.ref_name }} | ||
|
||
- name: Clone Graybox Repository and Checkout Stage Branch | ||
run: | | ||
|
@@ -41,7 +46,7 @@ jobs: | |
echo "bacom branch" | ||
git branch | ||
env: | ||
GB_SYNC_BRANCH: ${{ inputs.syncBranch }} | ||
GB_SYNC_BRANCH: ${{ inputs.syncBranch || github.ref_name }} | ||
|
||
- name: Overwrite graybox repo files with latest from source repo | ||
run: | | ||
|
@@ -54,13 +59,18 @@ jobs: | |
git branch | ||
git config user.email "$FG_SYNC_BOT_EMAIL" | ||
git config user.name "milo-repo-sync[bot]" | ||
git status | ||
git remote set-url origin https://oauth2:[email protected]/adobecom/bacom-graybox.git | ||
git remote -v | ||
git add . | ||
git commit -m "Syncing bacom to bacom-graybox" | ||
git push origin $GB_SYNC_BRANCH --force | ||
git status | ||
if [[ -n $(git status -s) ]]; then | ||
git remote set-url origin https://oauth2:[email protected]/adobecom/bacom-graybox.git | ||
git remote -v | ||
git add . | ||
git commit -m "Syncing bacom to bacom-graybox" | ||
git push origin $GB_SYNC_BRANCH --force | ||
echo ":heavy_check_mark: Syncing branch $GB_SYNC_BRANCH on bacom to bacom-graybox completed successfully." >> $GITHUB_STEP_SUMMARY | ||
else | ||
echo ":heavy_minus_sign: No changes detected on branch $GB_SYNC_BRANCH, nothing to sync." >> $GITHUB_STEP_SUMMARY | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
FG_SYNC_BOT_EMAIL: ${{ secrets.FG_SYNC_BOT_EMAIL }} | ||
GB_SYNC_BRANCH: ${{ inputs.syncBranch }} | ||
GB_SYNC_BRANCH: ${{ inputs.syncBranch || github.ref_name }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Bacom E2E Daily Run | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 16 * * *' | ||
|
||
jobs: | ||
platform_matrix: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
name: Running tests on Browserstack | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
WORKFLOW_NAME: 'Bacom E2E Nala Daily Run' | ||
DAILY_RUN: 'true' | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: adobecom/nala | ||
ref: main | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
|
||
- name: Run Nala ${{ matrix.os }} | ||
run: bash runOnBrowserstack.sh bacom @e2e | ||
env: | ||
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | ||
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,32 @@ | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<link rel="preload" href="/styles/styles.css" as="style"/> | ||
<script> | ||
const libs = (() => { | ||
const { hostname, search } = window.location; | ||
if (!['.hlx.', '.stage.', 'local'].some((i) => hostname.includes(i))) return '/libs'; | ||
const branch = new URLSearchParams(search).get('milolibs') || 'main'; | ||
if (branch === 'local') return 'http://localhost:6456/libs'; | ||
return branch.includes('--') ? `https://${branch}.hlx.live/libs` : `https://${branch}--milo--adobecom.hlx.live/libs`; | ||
})(); | ||
|
||
const miloStyles = document.createElement('link'); | ||
const miloUtils = document.createElement('link'); | ||
const miloDecorate = document.createElement('link'); | ||
|
||
miloStyles.setAttribute('as', 'style'); | ||
miloStyles.setAttribute('href', `${libs}/styles/styles.css`); | ||
|
||
[miloUtils, miloDecorate].forEach((tag) => { | ||
tag.setAttribute('crossorigin', 'true'); | ||
tag.setAttribute('as', 'script'); | ||
}) | ||
|
||
miloUtils.setAttribute('href', `${libs}/utils/utils.js`); | ||
miloDecorate.setAttribute('href', `${libs}/utils/decorate.js`); | ||
|
||
[miloStyles, miloUtils, miloDecorate].forEach((tag) => tag.setAttribute('rel', 'preload')); | ||
document.head.append(miloStyles, miloUtils, miloDecorate); | ||
</script> | ||
<script src="/scripts/scripts.js" type="module"></script> | ||
<style>body { display: none; }</style> | ||
<link rel="icon" href="data:,"> |
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
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
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
Oops, something went wrong.