Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/add-tenderly-plugin' into rtoken…
Browse files Browse the repository at this point in the history
…-oracle
  • Loading branch information
akshatmittal committed Jun 19, 2023
2 parents 9fa2016 + 0735546 commit 15a0727
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ jobs:
with:
node-version: 16.x
cache: 'yarn'
- run: curl https://raw.githubusercontent.com/Tenderly/tenderly-cli/master/scripts/install-linux.sh | sudo sh
- run: tenderly login --authentication-method access-key --access-key ${{ secrets.TENDERLY_ACCESS_KEY }} --force
- run: yarn install --immutable
- run: yarn compile
- run: yarn devchain &
env:
MAINNET_RPC_URL: https://eth-mainnet.alchemyapi.io/v2/${{ secrets.ALCHEMY_MAINNET_KEY }}
CI: true
- run: yarn deploy:run --network localhost
env:
SKIP_PROMPT: 1
Expand All @@ -38,6 +39,8 @@ jobs:
node-version: 16.x
cache: 'yarn'
- run: yarn install --immutable
- run: curl https://raw.githubusercontent.com/Tenderly/tenderly-cli/master/scripts/install-linux.sh | sudo sh
- run: tenderly login --authentication-method access-key --access-key ${{ secrets.TENDERLY_ACCESS_KEY }} --force
- run: yarn compile
- run: yarn lint

Expand All @@ -51,6 +54,8 @@ jobs:
node-version: 16.x
cache: 'yarn'
- run: yarn install --immutable
- run: curl https://raw.githubusercontent.com/Tenderly/tenderly-cli/master/scripts/install-linux.sh | sudo sh
- run: tenderly login --authentication-method access-key --access-key ${{ secrets.TENDERLY_ACCESS_KEY }} --force
- run: yarn compile
- run: yarn test:plugins
- name: 'Cache hardhat network fork'
Expand All @@ -66,7 +71,6 @@ jobs:
NODE_OPTIONS: '--max-old-space-size=4096'
TS_NODE_SKIP_IGNORE: true
MAINNET_RPC_URL: https://eth-mainnet.alchemyapi.io/v2/${{ secrets.ALCHEMY_MAINNET_KEY }}
CI: true

p0-tests:
name: 'P0 tests'
Expand All @@ -78,11 +82,12 @@ jobs:
node-version: 16.x
cache: 'yarn'
- run: yarn install --immutable
- run: curl https://raw.githubusercontent.com/Tenderly/tenderly-cli/master/scripts/install-linux.sh | sudo sh
- run: tenderly login --authentication-method access-key --access-key ${{ secrets.TENDERLY_ACCESS_KEY }} --force
- run: yarn compile
- run: yarn test:p0
env:
NODE_OPTIONS: '--max-old-space-size=4096'
CI: true

p1-tests:
name: 'P1 Tests'
Expand All @@ -94,11 +99,12 @@ jobs:
node-version: 16.x
cache: 'yarn'
- run: yarn install --immutable
- run: curl https://raw.githubusercontent.com/Tenderly/tenderly-cli/master/scripts/install-linux.sh | sudo sh
- run: tenderly login --authentication-method access-key --access-key ${{ secrets.TENDERLY_ACCESS_KEY }} --force
- run: yarn compile
- run: yarn test:p1
env:
NODE_OPTIONS: '--max-old-space-size=4096'
CI: true

scenario-tests:
name: 'Scenario Tests'
Expand All @@ -110,11 +116,12 @@ jobs:
node-version: 16.x
cache: 'yarn'
- run: yarn install --immutable
- run: curl https://raw.githubusercontent.com/Tenderly/tenderly-cli/master/scripts/install-linux.sh | sudo sh
- run: tenderly login --authentication-method access-key --access-key ${{ secrets.TENDERLY_ACCESS_KEY }} --force
- run: yarn compile
- run: yarn test:scenario
env:
NODE_OPTIONS: '--max-old-space-size=8192'
CI: true

extreme-tests:
name: 'Extreme Tests'
Expand All @@ -126,6 +133,8 @@ jobs:
node-version: 16.x
cache: 'yarn'
- run: yarn install --immutable
- run: curl https://raw.githubusercontent.com/Tenderly/tenderly-cli/master/scripts/install-linux.sh | sudo sh
- run: tenderly login --authentication-method access-key --access-key ${{ secrets.TENDERLY_ACCESS_KEY }} --force
- run: yarn compile
- run: yarn test:extreme
- name: 'Cache hardhat network fork'
Expand All @@ -141,7 +150,6 @@ jobs:
NODE_OPTIONS: '--max-old-space-size=4096'
TS_NODE_SKIP_IGNORE: true
MAINNET_RPC_URL: https://eth-mainnet.alchemyapi.io/v2/${{ secrets.ALCHEMY_MAINNET_KEY }}
CI: true

integration-tests:
name: 'Integration Tests'
Expand All @@ -163,10 +171,11 @@ jobs:
hardhat-network-fork-${{ runner.os }}-
hardhat-network-fork-
- run: yarn install --immutable
- run: curl https://raw.githubusercontent.com/Tenderly/tenderly-cli/master/scripts/install-linux.sh | sudo sh
- run: tenderly login --authentication-method access-key --access-key ${{ secrets.TENDERLY_ACCESS_KEY }} --force
- run: yarn compile
- run: yarn test:integration
env:
NODE_OPTIONS: '--max-old-space-size=4096'
TS_NODE_SKIP_IGNORE: true
MAINNET_RPC_URL: https://eth-mainnet.alchemyapi.io/v2/${{ secrets.ALCHEMY_MAINNET_KEY }}
CI: true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ If you would like to contribute, you'll need to configure a secret in your fork

Usage: `https://eth-mainnet.alchemyapi.io/v2/${{ secrets.ALCHEMY_MAINNET_KEY }}`

To get setup with tenderly, install the [tenderly cli](https://github.com/Tenderly/tenderly-cli). and login with `tenderly login --authentication-method access-key --access-key {your_access_key} --force`.

## External Documentation

[Video overview](https://youtu.be/341MhkOWsJE)
1 change: 0 additions & 1 deletion utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type IEnvVars =
| 'SUBGRAPH_URL'
| 'TENDERLY_RPC_URL'
| 'SKIP_PROMPT'
| 'CI'

export function useEnv(key: IEnvVars | IEnvVars[], _default = ''): string {
if (typeof key === 'string') {
Expand Down

0 comments on commit 15a0727

Please sign in to comment.