hardhat e2e for dsm v3 #730
This file contains 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
name: Tests and checks | ||
Check failure on line 1 in .github/workflows/tests_and_checks.yml GitHub Actions / Tests and checksInvalid workflow file
Check failure on line 1 in .github/workflows/tests_and_checks.yml GitHub Actions / Tests and checksInvalid workflow file
|
||
on: pull_request | ||
jobs: | ||
test: | ||
name: App 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 lint | ||
run: yarn lint | ||
- name: Run tests | ||
run: yarn test | ||
- 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 |