-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into DX-2625/port-core-sdk
- Loading branch information
Showing
25 changed files
with
610 additions
and
109 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties | ||
|
||
[*.{yml,yaml}] | ||
indent_style = space | ||
indent_size = 2 | ||
quote_type = double |
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,41 +1,41 @@ | ||
name: Functional Tests (IMX) | ||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
pull_request: | ||
branches: [ main ] | ||
branches: [main] | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
|
||
- name: Install root dependencies | ||
run: npm install -g yarn && yarn install --immutable | ||
- name: Install root dependencies | ||
run: npm install -g yarn && yarn install --immutable | ||
|
||
- name: Build SDK | ||
run: yarn build | ||
- name: Build SDK | ||
run: yarn build | ||
|
||
- name: Install functional tests dependencies | ||
run: cd tests/func-tests/imx && yarn install --no-immutable | ||
- name: Install functional tests dependencies | ||
run: cd tests/func-tests/imx && yarn install --no-immutable | ||
|
||
- name: Run tests | ||
env: | ||
NETWORK: sepolia | ||
TEST_ALCHEMY_API_KEY: ${{ secrets.TEST_ALCHEMY_API_KEY }} | ||
PUBLIC_API_URL: 'https://api.sandbox.x.immutable.com/v1' | ||
TEST_STARK_CONTRACT_ADDRESS: '0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98' | ||
TEST_REGISTRATION_CONTRACT_ADDRESS: '0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97' | ||
TEST_TOKEN_ADDRESS: '0xfA5539fBEd27887EEbb2515672D80412D1A3ADa3' | ||
TEST_WALLET1_PRIVATE_KEY: ${{ secrets.TEST_WALLET1_PRIVATE_KEY }} | ||
TEST_WALLET1_STARK_PRIVATE_KEY: ${{ secrets.TEST_WALLET1_STARK_PRIVATE_KEY }} | ||
TEST_WALLET2_PRIVATE_KEY: ${{ secrets.TEST_WALLET2_PRIVATE_KEY }} | ||
TEST_WALLET2_STARK_PRIVATE_KEY: ${{ secrets.TEST_WALLET2_STARK_PRIVATE_KEY }} | ||
TEST_WALLET_BANKER_PRIVATE_KEY: ${{ secrets.TEST_WALLET_BANKER_PRIVATE_KEY }} | ||
TEST_WALLET_BANKER_STARK_PRIVATE_KEY: ${{ secrets.TEST_WALLET_BANKER_STARK_PRIVATE_KEY }} | ||
TEST_STARKEX_BATCH_SIZE: 500 | ||
run: cd tests/func-tests/imx && yarn test:ci | ||
- name: Run tests | ||
env: | ||
NETWORK: sepolia | ||
TEST_ALCHEMY_API_KEY: ${{ secrets.TEST_ALCHEMY_API_KEY }} | ||
PUBLIC_API_URL: "https://api.sandbox.x.immutable.com/v1" | ||
TEST_STARK_CONTRACT_ADDRESS: "0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98" | ||
TEST_REGISTRATION_CONTRACT_ADDRESS: "0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97" | ||
TEST_TOKEN_ADDRESS: "0xfA5539fBEd27887EEbb2515672D80412D1A3ADa3" | ||
TEST_WALLET1_PRIVATE_KEY: ${{ secrets.TEST_WALLET1_PRIVATE_KEY }} | ||
TEST_WALLET1_STARK_PRIVATE_KEY: ${{ secrets.TEST_WALLET1_STARK_PRIVATE_KEY }} | ||
TEST_WALLET2_PRIVATE_KEY: ${{ secrets.TEST_WALLET2_PRIVATE_KEY }} | ||
TEST_WALLET2_STARK_PRIVATE_KEY: ${{ secrets.TEST_WALLET2_STARK_PRIVATE_KEY }} | ||
TEST_WALLET_BANKER_PRIVATE_KEY: ${{ secrets.TEST_WALLET_BANKER_PRIVATE_KEY }} | ||
TEST_WALLET_BANKER_STARK_PRIVATE_KEY: ${{ secrets.TEST_WALLET_BANKER_STARK_PRIVATE_KEY }} | ||
TEST_STARKEX_BATCH_SIZE: 500 | ||
run: cd tests/func-tests/imx && yarn test:ci |
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,35 +1,35 @@ | ||
name: Functional Tests (zkEVM) | ||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
pull_request: | ||
branches: [ main ] | ||
branches: [main] | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
|
||
- name: Install root dependencies | ||
run: npm install -g yarn && yarn install --immutable | ||
- name: Install root dependencies | ||
run: npm install -g yarn && yarn install --immutable | ||
|
||
- name: Build SDK | ||
run: yarn build | ||
- name: Build SDK | ||
run: yarn build | ||
|
||
- name: Install functional tests dependencies | ||
run: cd tests/func-tests/zkevm && yarn install --no-immutable | ||
- name: Install functional tests dependencies | ||
run: cd tests/func-tests/zkevm && yarn install --no-immutable | ||
|
||
- name: Run tests | ||
env: | ||
ZKEVM_ORDERBOOK_BANKER: ${{ secrets.ZKEVM_ORDERBOOK_BANKER }} | ||
ZKEVM_ORDERBOOK_ERC721: '0xBE8B131f39825282Ace9eFf99C0Bb14972417b49' | ||
SEAPORT_CONTRACT_ADDRESS: '0x7d117aA8BD6D31c4fa91722f246388f38ab1942c' | ||
ZONE_CONTRACT_ADDRESS: '0x8831867E347AB87FA30199C5B695F0A31604Bb52' | ||
ZKEVM_RPC_ENDPOINT: 'https://rpc.testnet.immutable.com' | ||
ORDERBOOK_MR_API_URL: 'https://api.sandbox.immutable.com' | ||
ZKEVM_CHAIN_NAME: 'imtbl-zkevm-testnet' | ||
run: cd tests/func-tests/zkevm && yarn test:ci | ||
- name: Run tests | ||
env: | ||
ZKEVM_ORDERBOOK_BANKER: ${{ secrets.ZKEVM_ORDERBOOK_BANKER }} | ||
ZKEVM_ORDERBOOK_ERC721: "0xBE8B131f39825282Ace9eFf99C0Bb14972417b49" | ||
SEAPORT_CONTRACT_ADDRESS: "0x7d117aA8BD6D31c4fa91722f246388f38ab1942c" | ||
ZONE_CONTRACT_ADDRESS: "0x8831867E347AB87FA30199C5B695F0A31604Bb52" | ||
ZKEVM_RPC_ENDPOINT: "https://rpc.testnet.immutable.com" | ||
ORDERBOOK_MR_API_URL: "https://api.sandbox.immutable.com" | ||
ZKEVM_CHAIN_NAME: "imtbl-zkevm-testnet" | ||
run: cd tests/func-tests/zkevm && yarn test:ci |
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,43 +1,43 @@ | ||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: [ main, master ] | ||
branches: [main, master] | ||
pull_request: | ||
branches: [ main, master ] | ||
branches: [main, master] | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
container: | ||
image: mcr.microsoft.com/playwright:v1.40.0-jammy | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: samples/apps/ts-immutable-sample/.nvmrc | ||
|
||
- name: Install root dependencies | ||
run: npm install -g yarn && yarn install --immutable | ||
- name: Install root dependencies | ||
run: npm install -g yarn && yarn install --immutable | ||
|
||
- name: Build SDK | ||
run: yarn build | ||
- name: Build SDK | ||
run: yarn build | ||
|
||
- name: Install sample apps dependencies | ||
run: cd samples/apps/ts-immutable-sample && yarn install --no-immutable | ||
- name: Install sample apps dependencies | ||
run: cd samples/apps/ts-immutable-sample && yarn install --no-immutable | ||
|
||
- name: Run Unit tests | ||
run: cd samples/apps/ts-immutable-sample && yarn test | ||
- name: Run Playwright tests | ||
env: | ||
# Required for Firefox to run | ||
# https://github.com/microsoft/playwright/issues/6500#issuecomment-838515115 | ||
HOME: /root | ||
working-directory: samples/apps/ts-immutable-sample | ||
run: yarn playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 | ||
- name: Run Unit tests | ||
run: cd samples/apps/ts-immutable-sample && yarn test | ||
|
||
- name: Run Playwright tests | ||
env: | ||
# Required for Firefox to run | ||
# https://github.com/microsoft/playwright/issues/6500#issuecomment-838515115 | ||
HOME: /root | ||
working-directory: samples/apps/ts-immutable-sample | ||
run: yarn playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/* |
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.