-
Notifications
You must be signed in to change notification settings - Fork 16
49 lines (47 loc) · 1.32 KB
/
test.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
name: test
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: node_operator_keys_service_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: Set up node
uses: actions/[email protected]
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Generate types
run: yarn typechain
- name: Run lint
run: yarn lint
- name: Run tests
run: yarn test
- name: Run E2E tests
run: yarn test:e2e
env:
PROVIDERS_URLS: ${{ secrets.PROVIDERS_URLS }}
CL_API_URLS: "https://e2e-test.lido.fi,"
CHAIN_ID: ${{ secrets.CHAIN_ID }}
CHRONIX_PROVIDER_MAINNET_URL: ${{ secrets.CHRONIX_PROVIDER_MAINNET_URL }}
DB_NAME: node_operator_keys_service_db
DB_PORT: 5432
DB_HOST: localhost
DB_USER: postgres
DB_PASSWORD: postgres