Skip to content

Commit

Permalink
fix: temp disable e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Amuhar committed Nov 26, 2024
1 parent c0e39ec commit 17d72f7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 43 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,33 @@ jobs:
RPC_URL: ${{ secrets.RPC_URL }}
CHAIN_ID: 17000
LOCATOR_DEVNET_ADDRESS: "0x28FAB2059C713A7F9D8c86Db49f9bb0e96Af1ef8"

e2e_tests:
name: E2E Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Run e2e transports
run: docker compose -f docker-compose.test.yml up -d
- name: Pull kapi
run: docker pull lidofinance/lido-keys-api:staging
- name: Pull psql
run: docker pull postgres:14-alpine
- name: Run e2e tests
run: yarn test:e2e
env:
RPC_URL: ${{ secrets.RPC_URL }}
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
KEYS_API_URL: http://127.0.0.1:3000
CHAIN_ID: 17000
LOCATOR_DEVNET_ADDRESS: "0x28FAB2059C713A7F9D8c86Db49f9bb0e96Af1ef8"

# e2e_tests:
# name: E2E Tests
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repo
# uses: actions/checkout@v3
# - name: Set up node
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'yarn'
# - name: Install dependencies
# run: yarn install --immutable
# - name: Run e2e transports
# run: docker compose -f docker-compose.test.yml up -d
# - name: Pull kapi
# run: docker pull lidofinance/lido-keys-api:staging
# - name: Pull psql
# run: docker pull postgres:14-alpine
# - name: Run e2e tests
# run: yarn test:e2e
# env:
# RPC_URL: ${{ secrets.RPC_URL }}
# WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
# KEYS_API_URL: http://127.0.0.1:3000
# CHAIN_ID: 17000
# LOCATOR_DEVNET_ADDRESS: "0x28FAB2059C713A7F9D8c86Db49f9bb0e96Af1ef8"

16 changes: 0 additions & 16 deletions test/helpers/dsm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ export async function addGuardians(params: {
await accountImpersonate(params.securityModuleOwner);
const wallet = createWallet(testSetupProvider);

// Convert the ETH amount to wei
// const amountInWei = ethers.utils.parseEther('5');

// await testSetupProvider.send('hardhat_setBalance', [
// params.securityModuleOwner,
// ethers.utils.hexlify(amountInWei),
// ]);

await setBalance(params.securityModuleOwner, 5);

const signer = testSetupProvider.getSigner(params.securityModuleOwner);
Expand All @@ -72,14 +64,6 @@ export async function addGuardians(params: {
export async function setGuardianBalance(eth: string) {
const wallet = createWallet(testSetupProvider);

// Convert the ETH amount to wei
// const amountInWei = ethers.utils.parseEther(eth);

// await testSetupProvider.send('hardhat_setBalance', [
// wallet.address,
// ethers.utils.hexlify(amountInWei),
// ]);

await setBalance(wallet.address, Number(eth));
}

Expand Down

0 comments on commit 17d72f7

Please sign in to comment.