Skip to content

Commit

Permalink
add a readme doc and a fix for chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
3ch023 committed Dec 23, 2024
1 parent 47cf36e commit dbfc797
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SSH into GH actions
## action code
If you need to debug your action you can add this snippet to the workflow:
```
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
```
once you push to the branch you can find an ssh connection string in action logs.

## github account setup
you will need to have generated pair of SSH keys on your machine.
Follow this docu: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
check for existing keys, if doesn't exist generate a pair and add a public one to your github account.

## SSH out!
If you are in the office network or using VPN - don't forget to SSH out:
1. Go to this site
http://sanjose-ssh-out.corp.adobe.com/ (HTTP not HTTPS)
2. Log in using your adobenet ID and "One time password token"
3. After logging in, you should get the confirmation message saying that "Authentication successfully. You may now SSH or SCP to an Internet host...."
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,24 @@ Refer to the corresponding README.md under any of the packages:
* studio - M@S Studio for creating, updating and publishing merch fragments
* ost-audit - crawls EDS pages HTML for OST links and generates a CSV report

## Nala E2E tests
for initial setup:
```
npm install
npx playwright install
export IMS_EMAIL=<val>
export IMS_PASS=<val>
```
Ask colleagues/slack for IMS_EMAIL ad IMS_PASS values, your user might not work as expected because it's not '@adobetest.com' account.

`npm run nala local` - to run on local
`npm run nala MWPW-160756` - to run on branch
`npm run nala MWPW-160756 mode=ui` - ui mode

Beware that 'npm run nala' runs `node nala/utils/nala.run.js`, it's not the script that GH action does.
If you want to debug GH action script run sh `nala/utils/pr.run.sh`
# CI/CD
documented in .github/README.md

#### Troubleshooting
Please reach out to us in `#tacocat-friends` for any questions.
5 changes: 5 additions & 0 deletions nala/studio/studio.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ test.beforeEach(async ({ page, browserName, baseURL }) => {
browserName !== 'chromium',
'Not supported to run on multiple browsers.',
);
if (browserName === 'chromium') {
await page.setExtraHTTPHeaders({
'sec-ch-ua': '"Chromium";v="123", "Not:A-Brand";v="8"',
});
}
studio = new StudioPage(page);
features[0].url = `${baseURL}/studio.html`;
await page.goto(features[0].url);
Expand Down

0 comments on commit dbfc797

Please sign in to comment.