-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (52 loc) · 1.57 KB
/
tests_and_checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Tests and checks
on: pull_request
jobs:
unit_tests:
name: Unit 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
env:
RPC_URL: ${{ secrets.RPC_URL }}
CHAIN_ID: 17000
LOCATOR_DEVNET_ADDRESS: "0x28FAB2059C713A7F9D8c86Db49f9bb0e96Af1ef8"
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
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"