Skip to content

Commit

Permalink
Merge pull request #640 from bobanetwork/release/gateway_0_15_0
Browse files Browse the repository at this point in the history
📦  Release Gateway 0.15
  • Loading branch information
sk-enya authored Sep 4, 2024
2 parents 2a6ff92 + fcd5af7 commit a6d06eb
Show file tree
Hide file tree
Showing 330 changed files with 20,575 additions and 18,311 deletions.
18 changes: 2 additions & 16 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,9 @@ REACT_APP_GA4_MEASUREMENT_ID=
REACT_APP_SENTRY_DSN=
REACT_APP_WC_PROJECT_ID=
REACT_APP_GATEWAY_DATA_BRANCH=
REACT_APP_THE_GRAPH_API_KEY=
#####################
##### WebWallet #####
#####################
# to disable the walletConnect set below flat to 1.
# REACT_APP_DISABLE_WALLETCONNECT=1

######################
#### Cypress Test ####
######################

#Debuging port for cypress as 3000 will be busy to run the application.
CYPRESS_REMOTE_DEBUGGING_PORT=9222
#Starting network for wallet.
NETWORK_NAME=sepolia
#Secret phrase to connect to metamask account.
SECRET_WORDS=
#Transaction hash for account to validate history page.
CYPRESS_TEST_TX_HASH=
# To enable the video output of cypres test
CYPRESS_ENABLE_VIDEO=
# REACT_APP_DISABLE_WALLETCONNECT=1
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
es6: true,
},
ignorePatterns: ['dist', 'coverage', 'packages/contracts/hardhat'],
extends: ['plugin:prettier/recommended', 'plugin:storybook/recommended'],
extends: ['plugin:prettier/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
es6: true,
Expand Down
3 changes: 0 additions & 3 deletions .github/label-requires-reviews.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/labeler.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/pull.yml

This file was deleted.

86 changes: 48 additions & 38 deletions .github/workflows/end2end-test.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,75 @@
name: End2End test (non-headless)
permissions: read-all
name: Integration Test

on:
on:
push:
branches: ['main', 'master']
pull_request:
workflow_dispatch:

jobs:
End-to-End-Test:
name: Integration Test
e2e-test:
name: Playwright Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/checkout@v4
- name: Setup Node 16
uses: actions/setup-node@v4
with:
node-version: 16.17.0
cache: 'yarn'
- name: Setup Cache Node Modules, Cypress
id: cache-node-modules
uses: actions/cache@v3
with:
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Install dependencies
run: yarn
- uses: actions/cache/save@v3
if: ${{steps.cache-node-modules.outputs.cache-hit != 'true'}}
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install linux deps
- name: Install linux deps (xvfb / fluxbox)
run: |
sudo apt-get install --no-install-recommends -y \
fluxbox \
xvfb
- name: Run E2E Test (non-headless)
- name: Install yarn dependencies
run: yarn
- name: Build Gateway Project
working-directory: ./
run: |
Xvfb :0 -screen 0 1024x768x24 -listen tcp -ac &
fluxbox & yarn test:integration
yarn && yarn build:prod
env:
REACT_APP_POLL_INTERVAL: 15000
REACT_APP_GAS_POLL_INTERVAL: 30000
SKIP_PREFLIGHT_CHECK: true
REACT_APP_WALLET_VERSION: 0.9.1
REACT_APP_ENV: prod
REACT_APP_STATUS: normal
CYPRESS_REMOTE_DEBUGGING_PORT: 9222
NETWORK_NAME: 'goerli'
REACT_APP_WALLET_VERSION: 0.14.9
REACT_APP_ENV: local
REACT_APP_ENABLE_ANCHORAGE: true
REACT_APP_WC_PROJECT_ID: ${{secrets.WC_PROJECT_ID}}
REACT_APP_GA4_MEASUREMENT_ID: ${{secrets.GA4_MEASUREMENT_ID}}
REACT_APP_SENTRY_DSN: ${{secrets.SENTRY_DSN}}
- name: Setup Node 18
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install PNPM deps e2e-tests
working-directory: ./e2e-tests
run: |
npm install -g pnpm && pnpm install --frozen-lockfile && npx playwright install
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run e2e test (headful)
working-directory: ./e2e-tests
run: |
Xvfb :0 -screen 0 1920x1080x24 -listen tcp -ac &
fluxbox &
pnpm start:server &
pnpm test
env:
PASSWORD: ${{secrets.PASSWORD}}
NETWORK: 'sepolia'
SECRET_WORDS: ${{secrets.SECRET_WORDS}}
METAMASK_VERSION: 10.25.0
DISPLAY: :0.0
CYPRESS_ENABLE_VIDEO: true
- name: Upload Archive e2e artifacts
uses: actions/upload-artifact@v4
if: always()
if: ${{ !cancelled() }}
with:
name: e2e-archive
name: e2e-reports
retention-days: 3
path: |
./cypress/videos/
./cypress/screenshots/
./e2e-tests/videos/
./e2e-tests/playwright-report/
./e2e-tests/test-results/
continue-on-error: true
16 changes: 0 additions & 16 deletions .github/workflows/label-requires-reviews.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/labeler.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"yarn format:fix",
"yarn lint:fix"
],
"!(__tests__|*stories|*test|styles).{ts,tsx}": [
"!(__tests__|*test|styles).{ts,tsx}": [
"yarn test --passWithNoTests"
]
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.17.0
16.17.0
11 changes: 0 additions & 11 deletions .storybook/decorators.tsx

This file was deleted.

59 changes: 0 additions & 59 deletions .storybook/main.ts

This file was deleted.

Loading

0 comments on commit a6d06eb

Please sign in to comment.