Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into real-time-network-cap…
Browse files Browse the repository at this point in the history
…ture
  • Loading branch information
yuyi-sl committed Aug 30, 2024
2 parents d12997d + 7b9fb9c commit a878e23
Show file tree
Hide file tree
Showing 28 changed files with 3,390 additions and 10,920 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

31 changes: 0 additions & 31 deletions .eslintrc.json

This file was deleted.

41 changes: 37 additions & 4 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,25 @@ jobs:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Google Cloud Login
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.RUN_SA_KEY_DEV }}'

- name: Setup Google Cloud SDK
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.RUN_PROJECT_DEV }}
env:
CLOUDSDK_PYTHON: ${{ env.pythonLocation }}/python

- name: Set Preview Path
run: echo "PREVIEW_PATH=sauce-docs/pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV"
run: echo "PREVIEW_PATH=pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV"

- name: Install Dependencies
if: github.event.action != 'closed' # Skip if the PR was closed
Expand All @@ -48,7 +65,23 @@ jobs:
run: |
npm run build
- name: Deploy PR
uses: rossjrw/pr-preview-action@v1
- name: Deploy
if: github.event.action != 'closed' # Skip if the PR was closed
working-directory: build
run: |-
gsutil -m rsync -R -d . ${{ secrets.GCS_DEV_BUCKET }}/${{ env.PREVIEW_PATH }}
- name: Deploy Message
if: github.event.action != 'closed' # Skip if the PR was closed
uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
source-dir: ./build/
msg: |
Deploy preview ready for ${{ github.event.number }}!
https://docs.dev.saucelabs.net/${{ env.PREVIEW_PATH }}
- name: Cleanup
if: github.event.action == 'closed' # Cleanup action only on PR closure
run: |-
gsutil rm -r ${{ secrets.GCS_DEV_BUCKET }}/${{ env.PREVIEW_PATH }}
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v20
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ WORKDIR /app

EXPOSE 3000 35729
COPY . /app
RUN yarn install && yarn build
RUN npm install && \
npm run build

CMD ["yarn", "serve"]
CMD ["npm", "run", "serve"]
10 changes: 0 additions & 10 deletions cypress.json

This file was deleted.

24 changes: 12 additions & 12 deletions docs/web-apps/automated-testing/cypress.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ Sauce Labs supports the following test configurations for Cypress:
<th>Supported Browsers</th>
<th>End of Life</th>
</tr>
<tbody>
<tr>
<td rowspan='2'>13.13.3</td>
<td rowspan='2'>20</td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>August 28, 2025</td>
</tr>
<tr>
<td><b>Windows:</b> 10, 11</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan='2'>13.13.1</td>
Expand Down Expand Up @@ -154,18 +166,6 @@ Sauce Labs supports the following test configurations for Cypress:
<td><b>Windows:</b> 10, 11</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan='2'>12.17.2</td>
<td rowspan='2'>18</td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>August 1, 2024</td>
</tr>
<tr>
<td><b>Windows:</b> 10, 11</td>
</tr>
</tbody>
</table>

## How to Get Started
Expand Down
24 changes: 12 additions & 12 deletions docs/web-apps/automated-testing/playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ Sauce Labs supports the following test configurations for Playwright:
<th>Supported Browsers</th>
<th>End of Life</th>
</tr>
<tbody>
<tr>
<td rowspan='2'>1.46.1</td>
<td rowspan='2'>20</td>
<td><b>macOS:</b> 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>August 28, 2025</td>
</tr>
<tr>
<td><b>Windows:</b> 10, 11</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan='2'>1.45.2</td>
Expand Down Expand Up @@ -155,18 +167,6 @@ Sauce Labs supports the following test configurations for Playwright:
<td><b>Windows:</b> 10, 11</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan='2'>1.36.2</td>
<td rowspan='2'>18</td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>August 1, 2024</td>
</tr>
<tr>
<td><b>Windows:</b> 10, 11</td>
</tr>
</tbody>
</table>

## How to Get Started
Expand Down
19 changes: 1 addition & 18 deletions docs/web-apps/automated-testing/testcafe.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Sauce Labs supports the following test configurations for TestCafe:
<td rowspan='3'>20</td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td>Safari, Chrome, Firefox, Microsoft Edge</td>
<td rowspan='3'>July 23, 2025</td>
<td rowspan='3'>August 28, 2025</td>
</tr>
<tr>
<td><b>Windows:</b> 10, 11</td>
Expand Down Expand Up @@ -153,23 +153,6 @@ Sauce Labs supports the following test configurations for TestCafe:
<td>Safari</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan='3'>3.0.1</td>
<td rowspan='3'>18</td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td>Safari, Chrome, Firefox, Microsoft Edge</td>
<td rowspan='3'>August 1, 2024</td>
</tr>
<tr>
<td><b>Windows:</b> 10, 11</td>
<td>Chrome, Firefox, Microsoft Edge</td>
</tr>
<tr>
<td><b>iOS:</b> 13.4, 14.5, 15.4, 16.0, 16.1</td>
<td>Safari</td>
</tr>
</tbody>
</table>

## How to Get Started
Expand Down
40 changes: 40 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import react from 'eslint-plugin-react';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import js from '@eslint/js';
import pluginPromise from 'eslint-plugin-promise';

export default [
js.configs.recommended,
pluginPromise.configs['flat/recommended'],
prettierRecommended,
{
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
...react.configs.flat.recommended,
},
{
ignores: ['.docusaurus/', '**/*tests/', '**/*build/'],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},

ecmaVersion: 'latest',
sourceType: 'module',
},

settings: {
react: {
version: 'detect',
},
},

rules: {
'react/prop-types': 'off',
'prettier/prettier': ['error'],
},
},
];
Loading

0 comments on commit a878e23

Please sign in to comment.