-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:FuelLabs/fuels-wallet into ag/fix…
…/vite-dev-crx
- Loading branch information
Showing
72 changed files
with
3,931 additions
and
2,137 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,6 @@ | ||
--- | ||
"@fuel-wallet/types": minor | ||
"fuels-wallet": minor | ||
--- | ||
|
||
added SRC20 custom assets name, symbol and decimal resolve from indexer |
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,5 @@ | ||
--- | ||
"fuels-wallet": patch | ||
--- | ||
|
||
Require chainId on add network |
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,55 @@ | ||
name: Tests E2E - Contracts | ||
|
||
on: | ||
pull_request: | ||
branches: [main, master, sdk-v2] | ||
types: [opened, synchronize, reopened] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests-e2e-contracts: | ||
name: Test | ||
runs-on: buildjet-8vcpu-ubuntu-2204 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: FuelLabs/github-actions/setups/node@master | ||
with: | ||
node-version: 20.11.0 | ||
pnpm-version: 9.5.0 | ||
- uses: FuelLabs/github-actions/setups/docker@master | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: ./.github/actions/setup-rust | ||
|
||
- name: Run PNPM install | ||
id: pnpm-cache | ||
run: | ||
pnpm recursive install --frozen-lockfile | ||
|
||
- name: Start Test Node | ||
run: pnpm node:up | ||
|
||
- name: Generate .env app | ||
run: cp packages/app/.env.example packages/app/.env | ||
|
||
- name: Build & Deploy Contracts | ||
run: pnpm deploy:contracts | ||
working-directory: ./packages/e2e-contract-tests | ||
|
||
- name: Run E2E Contract Tests - Local | ||
uses: ./.github/actions/e2e-tests-contracts | ||
with: | ||
providerUrl: "http://localhost:4000/v1/graphql" | ||
masterMnemonic: ${{ secrets.VITE_MASTER_WALLET_MNEMONIC }} | ||
genesisSecret: "0xa449b1ffee0e2205fa924c6740cc48b3b473aa28587df6dab12abc245d1f5298" | ||
|
||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: playwright-e2e-contract-tests-report | ||
path: packages/e2e-contract-tests/playwright-results | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Tests E2E - CRX Lock | ||
|
||
on: | ||
pull_request: | ||
branches: [main, master, sdk-v2] | ||
types: [opened, synchronize, reopened] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests-e2e-crx-lock: | ||
name: Test | ||
runs-on: buildjet-8vcpu-ubuntu-2204 | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: FuelLabs/github-actions/setups/node@master | ||
with: | ||
node-version: 20.11.0 | ||
pnpm-version: 9.5.0 | ||
- uses: FuelLabs/github-actions/setups/docker@master | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Start Test Node | ||
run: pnpm node:up | ||
|
||
- name: Generate .env | ||
run: cp packages/app/.env.example packages/app/.env | ||
|
||
- name: Build Application | ||
run: pnpm build:app | ||
env: | ||
## increase node.js m memory limit for building | ||
## with sourcemaps | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
|
||
# E2E tests running with Playwright | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps chromium | ||
|
||
- name: Run E2E Tests | ||
run: xvfb-run --auto-servernum -- pnpm test:e2e:crx-lock | ||
timeout-minutes: 3 | ||
env: | ||
NODE_ENV: test | ||
|
||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: playwright-app-crx-lock-report | ||
path: packages/app/playwright-results | ||
retention-days: 30 | ||
|
||
- name: Stop Test Node | ||
run: pnpm node:clean |
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,59 @@ | ||
name: Tests E2E | ||
|
||
on: | ||
pull_request: | ||
branches: [main, master, sdk-v2] | ||
types: [opened, synchronize, reopened] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests-e2e: | ||
name: Test | ||
timeout-minutes: 20 | ||
runs-on: buildjet-8vcpu-ubuntu-2204 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: FuelLabs/github-actions/setups/node@master | ||
with: | ||
node-version: 20.11.0 | ||
pnpm-version: 9.5.0 | ||
- uses: FuelLabs/github-actions/setups/docker@master | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Start Test Node | ||
run: pnpm node:up | ||
|
||
- name: Generate .env | ||
run: cp packages/app/.env.example packages/app/.env | ||
|
||
- name: Build Application | ||
run: pnpm build:app | ||
env: | ||
## increase node.js m memory limit for building | ||
## with sourcemaps | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
|
||
# E2E tests running with Playwright | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps chromium | ||
|
||
- name: Run E2E Tests | ||
run: xvfb-run --auto-servernum -- pnpm test:e2e | ||
timeout-minutes: 15 | ||
env: | ||
NODE_ENV: test | ||
|
||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: playwright-app-report | ||
path: packages/app/playwright-results | ||
retention-days: 30 | ||
|
||
- name: Stop Test Node | ||
run: pnpm node:clean |
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,50 @@ | ||
name: Tests Unit | ||
|
||
on: | ||
pull_request: | ||
branches: [main, master, sdk-v2] | ||
types: [opened, synchronize, reopened] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests-jest: | ||
name: Test | ||
runs-on: buildjet-8vcpu-ubuntu-2204 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: FuelLabs/github-actions/setups/node@master | ||
with: | ||
node-version: 20.11.0 | ||
pnpm-version: 9.5.0 | ||
- uses: FuelLabs/github-actions/setups/docker@master | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Start Test Node | ||
run: pnpm node:up | ||
|
||
- name: Generate .env | ||
run: cp packages/app/.env.example packages/app/.env | ||
|
||
# Unit tests running with JEST | ||
- name: Find PR number | ||
uses: jwalton/gh-find-current-pr@v1 | ||
id: findPr | ||
|
||
- name: Build libs | ||
run: | | ||
pnpm build:libs | ||
- name: Run Jest Tests | ||
run: | | ||
pnpm test:ci | ||
timeout-minutes: 10 | ||
env: | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
|
||
- name: Stop Test Node | ||
run: pnpm node:clean |
Oops, something went wrong.