Skip to content
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

Ndev 3221 add uniswap tests #411

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
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: 1 addition & 1 deletion .github/workflows/dapps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ env:
NETWORK: ${{ inputs.network || 'terraform' }}
BUILD_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
DUMP_ENVS: True
ALL_DAPPS: "aave-v2,aave-v3,curve,uniswap-v2,uniswap-v3,saddle,yearn,robonomics,compound,curve-factory,pancake"
ALL_DAPPS: "aave-v2,aave-v3,curve,uniswap-v2,uniswap-v3,uniswap-v4,saddle,yearn,robonomics,compound,curve-factory,pancake"

jobs:
prepare:
Expand Down
34 changes: 33 additions & 1 deletion .github/workflows/dapps_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,38 @@ jobs:
with:
name: uniswap-v3-report
path: uniswap-v3-report.json

uniswap-v4:
runs-on: ubuntu-20.04
if: contains( inputs.dapps, 'uniswap-v4')
env:
PROXY_URL: ${{ inputs.proxy_url }}
NETWORK: ${{ inputs.network }}
SOLANA_URL: ${{ inputs.solana_url }}
FAUCET_URL: ${{ inputs.faucet_url }}
SOLANA_IP: ${{ inputs.solana_ip }}
PROXY_IP: ${{ inputs.proxy_ip }}
steps:
- name: Launch uniswap v4 tests
id: uniswap-v4
timeout-minutes: 20
env:
IMAGE: neonlabsorg/uniswap-v4:add-to-ci
run: |
docker pull ${{ env.IMAGE }}
docker run -i -d --name=uniswap-v4-${{ github.run_number }} ${{ env.IMAGE }} /bin/bash
docker exec -i -e PROXY_IP=${{ env.PROXY_IP }} uniswap-v4-${{ github.run_number }} \
bash -c " \
pytest test_v4_router.py -vvv -s"
echo "exit_code=$?" >> $GITHUB_ENV
- name: Delete the uniswap-v4 container
if: always() && steps.uniswap-v4.result != 'skipped'
run: docker rm -f uniswap-v4-${{ github.run_number }}
- name: Check exit code
if: always() && env.exit_code != 0
run: |
echo "Uniswap v4 tests failed"
exit 1

saddle:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -622,7 +654,7 @@ jobs:

swap-report:
runs-on: ubuntu-20.04
needs: [uniswap-v2, uniswap-v3, saddle, aave-v2, aave-v3, curve, robonomics, yearn, compound, curve-factory, pancake]
needs: [uniswap-v2, uniswap-v3, uniswap-v4, saddle, aave-v2, aave-v3, curve, robonomics, yearn, compound, curve-factory, pancake]
if: always()
env:
SOLANA_URL: ${{ inputs.solana_url }}
Expand Down
15 changes: 8 additions & 7 deletions docs/dapps.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ This project includes GHA Workflow for regular testing DApps like Uniswap V2, AA
This workflow is triggered by cron every Sunday at 01:00 UTC and runs DApp tests, gets a cost report from these tests, and shows this report.

1. Uniswap V2
2. Uniswap 3
3. Saddle finance
4. AAVE
5. Curve and Curve-factory
6. Yearn finance
7. Compound
8. Robonomics
2. Uniswap V3
3. Uniswap V4
4. Saddle finance
5. AAVE
6. Curve and Curve-factory
7. Yearn finance
8. Compound
9. Robonomics


## dApp report
Expand Down
Loading