-
Notifications
You must be signed in to change notification settings - Fork 91
feat: run all test locally #1493
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dd116d9
feat: run all test locally
rodrigopavezi 4d96887
fix: as per coderabitai reviews
rodrigopavezi 2678c7a
Update packages/request-node/test/getTransactionsByChannelId.test.ts
rodrigopavezi 21be368
fix: as per review
rodrigopavezi 8cdf03a
Merge branch 'chore/fix-e2e-tests' of https://github.com/RequestNetwo…
rodrigopavezi 0341bab
fix: per coderabitai reviews
rodrigopavezi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,16 +1,21 @@ | ||
| FROM node:16-alpine | ||
| FROM node:18-alpine | ||
| RUN apk add --no-cache git | ||
| RUN npm install -g solc | ||
|
|
||
| WORKDIR /app | ||
| ## Warning! This Docker config is meant to be used for development and debugging, not in prod. | ||
|
|
||
| RUN apk add --virtual .build-deps git python g++ bash make | ||
| WORKDIR /base | ||
|
|
||
| COPY package.json . | ||
| COPY yarn.lock . | ||
|
|
||
| RUN yarn | ||
| RUN yarn install && \ | ||
| yarn cache clean | ||
|
|
||
| COPY . . | ||
| RUN yarn | ||
| RUN yarn build | ||
| RUN yarn clean && \ | ||
| yarn build && \ | ||
| yarn cache clean | ||
|
|
||
| RUN apk del .build-deps | ||
| # Port configuration | ||
| ENV PORT 3000 | ||
| EXPOSE 3000 |
This file contains hidden or 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 hidden or 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,67 @@ | ||
| # Warning! This Docker config is meant to be used for development and debugging, specially for running tests, not in prod. | ||
| services: | ||
| graph-node: | ||
| image: graphprotocol/graph-node:v0.25.0 | ||
rodrigopavezi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ports: | ||
| - '8000:8000' | ||
| - '8001:8001' | ||
| - '8020:8020' | ||
| - '8030:8030' | ||
| - '8040:8040' | ||
| depends_on: | ||
| - ipfs | ||
| - postgres | ||
| - ganache | ||
| environment: | ||
| postgres_host: postgres | ||
| postgres_user: graph-node | ||
| postgres_pass: let-me-in | ||
| postgres_db: graph-node | ||
| ipfs: 'ipfs:5001' | ||
| ethereum: 'private:http://ganache:8545' | ||
| RUST_LOG: info | ||
| GRAPH_ALLOW_NON_DETERMINISTIC_IPFS: 1 | ||
| ipfs: | ||
| image: requestnetwork/request-ipfs:v0.13.0 | ||
| ports: | ||
| - '5001:5001' | ||
| restart: on-failure:20 | ||
| # volumes: | ||
| # - ./data/ipfs:/data/ipfs | ||
| ganache: | ||
| image: trufflesuite/ganache:v7.6.0 | ||
| ports: | ||
| - 8545:8545 | ||
| command: | ||
| - '-l' | ||
| - '90000000' | ||
| - '-m' | ||
| - 'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat' | ||
rodrigopavezi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - '-k' | ||
| - 'london' | ||
| restart: on-failure:20 | ||
| postgres: | ||
| image: postgres | ||
| ports: | ||
| - '5432:5432' | ||
| command: ['postgres', '-cshared_preload_libraries=pg_stat_statements'] | ||
| environment: | ||
| POSTGRES_USER: graph-node | ||
| POSTGRES_PASSWORD: let-me-in | ||
| POSTGRES_DB: graph-node | ||
rodrigopavezi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| restart: on-failure:20 | ||
| graph-deploy: | ||
| build: | ||
| context: https://github.com/RequestNetwork/docker-images.git#main | ||
| dockerfile: request-subgraph-storage/Dockerfile | ||
| depends_on: | ||
| - ipfs | ||
| - postgres | ||
| - graph-node | ||
| - ganache | ||
| environment: | ||
| GRAPH_NODE: 'http://graph-node:8020' | ||
| IPFS_HOST: 'ipfs:5001' | ||
| KEEP_ALIVE: 0 | ||
| SUBGRAPH_FILE: 'subgraph-private.yaml' | ||
| restart: on-failure:20 | ||
This file contains hidden or 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 hidden or 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,18 @@ | ||
| { | ||
| "tasksRunnerOptions": { | ||
| "default": { | ||
| "runner": "nx/tasks-runners/default", | ||
| "options": { | ||
| "cacheableOperations": ["build", "test"] | ||
| } | ||
| } | ||
| }, | ||
| "targetDefaults": { | ||
| "build": { | ||
| "dependsOn": ["^build"] | ||
| }, | ||
| "test": { | ||
| "dependsOn": ["build"] | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,23 @@ | ||
| MNEMONIC="wave easy stick sentence horse spin join winner blade brand primary giggle" | ||
|
|
||
| WEB3_PROVIDER_URL="https://fluent-tame-borough.ethereum-sepolia.quiknode.pro/0d83fabcb680ecddfbe5a92352b7fa4c9ac20213/" | ||
|
|
||
| ETHEREUM_NETWORK_ID=11155111 | ||
|
|
||
| IPFS_URL="https://shared-ipfs.p8f0ey.easypanel.host" | ||
|
|
||
| GRAPH_NODE_URL="https://sepolia.graph-node.stage.request.network/subgraphs/name/RequestNetwork/request-storage/" | ||
|
|
||
| # WEB3_PROVIDER_URL="http://localhost:8545" | ||
| # ETHEREUM_NETWORK_ID=0 | ||
| # IPFS_URL="http://localhost:5001" | ||
| # GRAPH_NODE_URL="http://localhost:8000/subgraphs/name/RequestNetwork/request-storage" | ||
|
|
||
| LOG_LEVEL=DEBUG | ||
|
|
||
| GAS_PRICE_MAX=20000000000000 | ||
| GAS_PRICE_MULTIPLIER=300 | ||
|
|
||
| PORT=8080 | ||
|
|
||
| LIT_PROTOCOL_NETWORK="datil-test" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| describe('Empty Test FIXME', () => { | ||
| it('should pass', () => { | ||
| expect(true).toBe(true); | ||
| }); | ||
| }); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.