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

Publish Stage #3986

Merged
merged 12 commits into from
Dec 2, 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 30 additions & 15 deletions .github/workflows/frontend-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
sparse-checkout: |
packages/e2e
- name: print environment_url and BRANCH_NAME
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
Expand All @@ -54,22 +57,22 @@ jobs:
- name: Install Playwright
run: |
echo "$GITHUB_OUTPUT"
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap Pair tests
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
WALLET_ID: ${{ secrets.TEST_WALLET_ID }}
run: |
cd packages/web
cd packages/e2e
npx playwright test -g "Test Swap feature"
- name: upload Swap test results
if: failure()
id: swap-test-results
uses: actions/upload-artifact@v4
with:
name: preview-swap-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

preview-portfolio-trx-tests:
timeout-minutes: 10
Expand All @@ -78,6 +81,9 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
sparse-checkout: |
packages/e2e
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -91,22 +97,22 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Portfolio tests
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
WALLET_ID: ${{ secrets.TEST_WALLET_ID }}
run: |
cd packages/web
cd packages/e2e
npx playwright test portfolio transactions
- name: upload Portfolio and transactions test results
if: failure()
id: portfolio-test-results
uses: actions/upload-artifact@v4
with:
name: preview-portfolio-trx-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

preview-pools-and-select-pair-tests:
timeout-minutes: 10
Expand All @@ -115,6 +121,9 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
sparse-checkout: |
packages/e2e
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -128,20 +137,20 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Pools tests
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
run: |
cd packages/web
cd packages/e2e
npx playwright test pools select
- name: upload pools test results
if: failure()
id: pools-test-results
uses: actions/upload-artifact@v4
with:
name: preview-pools-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

preview-trade-tests:
timeout-minutes: 10
Expand All @@ -150,6 +159,9 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
sparse-checkout: |
packages/e2e
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -164,22 +176,22 @@ jobs:
- name: Install Playwright
run: |
echo "$GITHUB_OUTPUT"
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap Pair tests
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
WALLET_ID: ${{ secrets.TEST_WALLET_ID }}
run: |
cd packages/web
cd packages/e2e
npx playwright test trade
- name: upload Trade test results
if: failure()
id: preview-trade-test-results
uses: actions/upload-artifact@v4
with:
name: preview-trade-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

preview-claim-tests:
timeout-minutes: 10
Expand All @@ -188,6 +200,9 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
sparse-checkout: |
packages/e2e
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -202,19 +217,19 @@ jobs:
- name: Install Playwright
run: |
echo "$GITHUB_OUTPUT"
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap Pair tests
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
WALLET_ID: ${{ secrets.TEST_WALLET_ID }}
run: |
cd packages/web
cd packages/e2e
npx playwright test claim
- name: upload Claim test results
if: failure()
id: claim-test-results
uses: actions/upload-artifact@v4
with:
name: preview-claim-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report
1 change: 1 addition & 0 deletions .github/workflows/jest-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
"bridge",
"tx",
"proto-codecs",
"unit",
]

steps:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/monitoring-claim-orders .yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap tests in US
env:
BASE_URL: "https://app.osmosis.zone"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY_1 }}
run: |
cd packages/web
cd packages/e2e
npx playwright test claim
- name: upload test results
if: failure()
id: e2e-test-results
uses: actions/upload-artifact@v4
with:
name: claim1-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

fe-claim2-tests:
timeout-minutes: 10
Expand All @@ -60,21 +60,21 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Claim tests
env:
BASE_URL: "https://app.osmosis.zone"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY_2 }}
run: |
cd packages/web
cd packages/e2e
npx playwright test claim
- name: upload claim2 test results
if: failure()
id: monitoring-test-results
uses: actions/upload-artifact@v4
with:
name: claim2-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

delete-deployments:
runs-on: ubuntu-latest
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/monitoring-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ jobs:
run: curl -L "https://ipinfo.io" -s
- name: Check out repository
uses: actions/checkout@v4
with:
sparse-checkout: |
packages/e2e
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -114,20 +117,20 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap tests on ${{ matrix.env }}
env:
BASE_URL: ${{ matrix.base-url }}
run: |
cd packages/web
cd packages/e2e
npx playwright test pools
- name: upload test results
if: failure()
id: e2e-test-results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.env }}-quote-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

delete-deployments:
runs-on: ubuntu-latest
Expand Down
Loading
Loading