-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (36 loc) · 929 Bytes
/
CI-CD.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
name: CI/CD
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15.3-alpine
env:
POSTGRES_DB: balance-aggregator
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data/pgdata
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5632:5432
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.20.0
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint
- name: Run build
run: npm run build
- name: Run tests
run: npm run test
# env:
# XDAI_NODE_HTTP_URL: ${{ secrets.XDAI_NODE_HTTP_URL }}