Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_ENV=development
NET=sepolia
2 changes: 2 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_ENV=production
NET=mainnet
14 changes: 14 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# When running npm run build, the following environment variables are required to be set in the CI/CD environment variables
# NODE_ENV=development
# NET=local
# Suggest to use npm run build:(dev|test|prod) to build the website

# Clone this file to .env with the following values filled in / or set in CI/CD environment variables
## Required for mainnet
STABILITY_API_KEY=
## Required
INFURA_API_KEY=
## Optional
ALCHEMY_API_KEY=
MAGIC_API_KEY=
OKLINK_API_KEY=
2 changes: 2 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_ENV=test
NET=local
3 changes: 0 additions & 3 deletions .env_sample

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: npm install, build
run: |
npm install
npm run build
npm run build:prod
- name: run Lighthouse CI
run: |
npm install -g @lhci/[email protected]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint_and_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
test:
name: Lint & Test
runs-on: ubuntu-latest
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/synpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
# https://github.com/drptbl/synpress-setup-example/blob/1d980157ef343de54f786e1115e1da590f1ba1d1/.github/workflows/e2e.yml#L49-L102
name: Synpress e2e Test
runs-on: ubuntu-latest
timeout-minutes: 30
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
steps:
- name: Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/testcafe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
testcafe:
name: Testcafe e2e Test
runs-on: ubuntu-latest
timeout-minutes: 30
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
13 changes: 9 additions & 4 deletions .testcaferc-dev.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"appCommand": "npm run serve-static",
"src": ["src/**/*.spec.ts"],
"browsers": ["chrome:headless"],
"concurrency": 4
}
"src": [
"src/**/*.spec.ts",
"!src/**/nested-documents.spec.ts"
],
"browsers": [
"chrome"
],
"concurrency": 1
}
15 changes: 15 additions & 0 deletions .testcaferc-dev2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Splitting nested-documents test into a separate file, error with testcafe v3 native automation
// https://github.com/DevExpress/testcafe/issues/8243
// https://stackoverflow.com/questions/76806603/how-to-use-disablenativeautomation-in-testcafe-for-one-test-only
module.exports = {
"appCommand": "npm run serve-static",
"src": [
"src/**/nested-documents.spec.ts"
],
"browsers": [
"chrome"
],
"concurrency": 1,
"disableNativeAutomation": true,
// "debugOnFail": "false"
}
16 changes: 10 additions & 6 deletions .testcaferc-prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"appCommand": "npm run serve-static",
"src": ["src/**/*.spec.ts"],
"browsers": ["chrome:headless"],
"src": [
"src/**/*.spec.ts",
"!src/**/nested-documents.spec.ts"
],
"browsers": [
"chrome:headless"
],
"concurrency": 4,
"cache": true,
"selectorTimeout": 45000,
Expand All @@ -10,9 +15,8 @@
"ajaxRequestTimeout": 120000,
"pageRequestTimeout": 180000,
"browserInitTimeout": 180000,
"testExecutionTimeout": 60000,
"runExecutionTimeout": 300000,
"disableMultipleWindows": false,
"testExecutionTimeout": 180000,
"runExecutionTimeout": 1000000,
"color": true,
"speed": 1,
"reporter": [
Expand All @@ -34,4 +38,4 @@
"takeOnFails": true,
"fullPage": true
}
}
}
44 changes: 44 additions & 0 deletions .testcaferc-prod2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Splitting nested-documents test into a separate file, error with testcafe v3 native automation
// https://github.com/DevExpress/testcafe/issues/8243
// https://stackoverflow.com/questions/76806603/how-to-use-disablenativeautomation-in-testcafe-for-one-test-only
module.exports = {
"appCommand": "npm run serve-static",
"src": [
"src/**/nested-documents.spec.ts"
],
"browsers": [
"chrome:headless"
],
"concurrency": 1,
"cache": true,
"selectorTimeout": 45000,
"assertionTimeout": 25000,
"pageLoadTimeout": 60000,
"ajaxRequestTimeout": 120000,
"pageRequestTimeout": 180000,
"browserInitTimeout": 180000,
"testExecutionTimeout": 180000,
"runExecutionTimeout": 1000000,
"disableNativeAutomation": true,
"color": true,
"speed": 1,
"reporter": [
{
"name": "spec"
},
{
"name": "spec",
"output": "artifacts/report.json"
}
],
"quarantineMode": {
"successThreshold": 1,
"attemptLimit": 3
},
"screenshots": {
"path": "artifacts/screenshots",
"pathPattern": "${USERAGENT}/test-${TEST_INDEX}-${USERAGENT}-${FILE_INDEX}.png",
"takeOnFails": true,
"fullPage": true
}
}
Loading
Loading