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

sync staging to main #226

Merged
merged 31 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
60bfb2c
deploy testnet
codingki Mar 21, 2024
e1cead4
seperated tests
codingki Mar 21, 2024
b342639
fix typo
codingki Mar 21, 2024
39891fb
Merge pull request #215 from skip-mev/deploy-testnet
codingki Mar 21, 2024
ba48afa
add fallback localhost
codingki Mar 21, 2024
1689f20
Merge pull request #216 from skip-mev/seperated-tests
codingki Mar 21, 2024
f88fde7
remove evm to evm warning
codingki Mar 25, 2024
b812290
Merge pull request #221 from skip-mev/remove-evm-to-evm-warning
codingki Mar 25, 2024
8f3d0ea
remove evm to evm warning in transaction dialog
NotJeremyLiu Mar 25, 2024
0040b5f
Merge pull request #222 from skip-mev/jl/remove-evm-evm-route-preview…
codingki Mar 25, 2024
892a125
add skip logo
codingki Mar 25, 2024
1353286
remove skip text
codingki Mar 25, 2024
78b6cbe
Merge pull request #223 from skip-mev/add-skip-logo
codingki Mar 25, 2024
113dec4
remove getGasPrice
codingki Mar 26, 2024
52c3cec
Merge pull request #224 from skip-mev/remove-getGasPrice
codingki Mar 26, 2024
b9f4b49
wip
codingki Mar 20, 2024
ca2e7a7
add more testnet
codingki Mar 24, 2024
2768359
rapid relay
codingki Mar 21, 2024
035d406
cleanup
codingki Mar 24, 2024
b077eca
router sdk rc version
codingki Mar 25, 2024
e62ca16
bump sdk rc version
codingki Mar 25, 2024
2f2549d
add solana explorer link in api
codingki Mar 25, 2024
c1d4de4
bump sdk rc version
codingki Mar 25, 2024
bcf6dba
add evm testnets
codingki Mar 25, 2024
b39922b
bump rc sdk version
codingki Mar 26, 2024
be588fe
remove testnet
codingki Mar 26, 2024
0a2ddfc
bump sdk version 2.0.0
codingki Mar 26, 2024
ab9922d
fix(test): update jest config
codingki Mar 26, 2024
dd59988
Merge pull request #225 from skip-mev/solana-rapid-relay
codingki Mar 26, 2024
04c7115
testnet env var
codingki Mar 26, 2024
75f140d
Merge pull request #217 from skip-mev/testnet-env-var
codingki Mar 26, 2024
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
36 changes: 36 additions & 0 deletions .github/workflows/deploy-testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy (dev)
on:
pull_request:
branches: [staging]
types: [closed]
push:
branches: [testnet]
repository_dispatch:
types: [deploy-testnet]
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v3
with:
ref: testnet

- id: pull-staging
name: Pull latest 'staging'
run: git pull origin staging

- id: diff-check
name: Check if 'testnet' is behind 'staging'
run: git diff --exit-code origin/staging

- id: fast-forward
name: Fast forward 'staging' → 'testnet'
run: git merge --ff-only origin/staging

- id: push-dev
name: Push latest 'dev'
run: git push --set-upstream origin testnet
82 changes: 80 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
run: npm test

"e2e-tests":
"e2e-test-noble-usdc-injective-inj":
timeout-minutes: 20
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -58,7 +58,85 @@ jobs:
POLKACHU_PASSWORD: ${{ secrets.POLKACHU_PASSWORD }}
NEXT_PUBLIC_EDGE_CONFIG: ${{ secrets.NEXT_PUBLIC_EDGE_CONFIG }}
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e-1
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
"e2e-test-injective-inj-cosmoshub-atom":
timeout-minutes: 20
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy
steps:
- name: Waiting for 200 from the Vercel Preview
uses: patrickedqvist/[email protected]
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_interval: 15
max_timeout: 1200
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- run: git config --system --add safe.directory /__w/ibc-dot-fun/ibc-dot-fun
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
env:
WORD_PHRASE_KEY: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_USER: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_PASSWORD: ${{ secrets.POLKACHU_PASSWORD }}
NEXT_PUBLIC_EDGE_CONFIG: ${{ secrets.NEXT_PUBLIC_EDGE_CONFIG }}
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e-2
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
"e2e-test-cosmoshub-atom-noble-usdc":
timeout-minutes: 20
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy
steps:
- name: Waiting for 200 from the Vercel Preview
uses: patrickedqvist/[email protected]
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_interval: 15
max_timeout: 1200
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- run: git config --system --add safe.directory /__w/ibc-dot-fun/ibc-dot-fun
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
env:
WORD_PHRASE_KEY: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_USER: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_PASSWORD: ${{ secrets.POLKACHU_PASSWORD }}
NEXT_PUBLIC_EDGE_CONFIG: ${{ secrets.NEXT_PUBLIC_EDGE_CONFIG }}
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e-3
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
2 changes: 1 addition & 1 deletion chain-registry
Submodule chain-registry updated 304 files
1 change: 1 addition & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ declare namespace NodeJS {
readonly RESEND_API_KEY?: string;
readonly WALLETCONNECT_VERIFY_KEY?: string;
readonly WORD_PHRASE_KEY?: string;
readonly NEXT_PUBLIC_IS_TESTNET?: boolean;
}
}

Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const customJestConfig = {
moduleNameMapper: {
isows: "<rootDir>/node_modules/isows/_cjs/index.js", // https://github.com/wagmi-dev/viem/issues/1329
tinykeys: "<rootDir>/node_modules/tinykeys/dist/tinykeys.js",
uuid: require.resolve("uuid"),
},
setupFiles: ["<rootDir>/jest.polyfills.js"],
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
Expand Down
Loading
Loading