2022-12-13 22:32:28 +00:00
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: node:${NODE_VERSION}
|
|
|
|
commands:
|
|
|
|
- corepack enable
|
|
|
|
- yarn install
|
|
|
|
- yarn build
|
|
|
|
environment:
|
|
|
|
- DATABASE=12
|
2022-12-13 22:37:24 +00:00
|
|
|
- YARN_ENABLE_IMMUTABLE_INSTALLS=false
|
2022-12-13 22:32:28 +00:00
|
|
|
migrate:
|
|
|
|
image: node:19.2.0
|
|
|
|
commands:
|
|
|
|
- cp .config/ci.yml .config/default.yml
|
|
|
|
- corepack enable
|
|
|
|
- yarn install
|
|
|
|
- yarn migrate
|
2022-12-13 22:37:24 +00:00
|
|
|
environment:
|
|
|
|
- YARN_ENABLE_IMMUTABLE_INSTALLS=false
|
2022-12-13 22:32:28 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
NODE_VERSION:
|
|
|
|
- 18.12.1
|
|
|
|
- 19.2.0
|
|
|
|
DATABASE:
|
|
|
|
- 12
|
|
|
|
- latest
|
|
|
|
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
image: postgres:${DATABASE}
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=test
|
2022-12-13 23:11:09 +00:00
|
|
|
redis:
|
|
|
|
image: redis
|
2022-12-13 22:32:28 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
include: [ master, develop, feature/* ]
|