-
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (54 loc) · 1.29 KB
/
ci.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
54
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:16-buster-slim
timeout-minutes: 10
env:
DB_HOST: postgres
DB_PORT: 5432
REDIS_HOST: redis
REDIS_PORT: 6379
MQ_HOST: rabbitmq
MQ_PORT: 5672
SMTP_HOST: maildev
SMTP_PORT: 25
MAILDEV_HOST: maildev
MAILDEV_PORT: 80
DEBUG: nrg.rateLimit
services:
postgres:
image: postgres:12.3
env:
POSTGRES_DB: nrg
POSTGRES_USER: nrg
POSTGRES_PASSWORD: gottaLottaEnemies
# Needed because the postgres container does not provide a health check.
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
redis:
image: redis:5.0
options: --entrypoint redis-server
rabbitmq:
image: rabbitmq:3.8
env:
RABBITMQ_DEFAULT_USER: nrg
RABBITMQ_DEFAULT_PASS: gottaLottaEnemies
maildev:
image: djfarrelly/maildev:1.1.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
run: yarn
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test