mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
38 lines
701 B
YAML
38 lines
701 B
YAML
pipeline:
|
|
build:
|
|
image: node:${NODE_VERSION}
|
|
commands:
|
|
- corepack enable
|
|
- yarn install
|
|
- yarn build
|
|
environment:
|
|
- DATABASE=12
|
|
- YARN_ENABLE_IMMUTABLE_INSTALLS=false
|
|
migrate:
|
|
image: node:19.2.0
|
|
commands:
|
|
- cp .config/ci.yml .config/default.yml
|
|
- corepack enable
|
|
- yarn install
|
|
- yarn migrate
|
|
environment:
|
|
- YARN_ENABLE_IMMUTABLE_INSTALLS=false
|
|
|
|
matrix:
|
|
NODE_VERSION:
|
|
- 18.12.1
|
|
- 19.2.0
|
|
DATABASE:
|
|
- 12
|
|
- latest
|
|
|
|
services:
|
|
database:
|
|
image: postgres:${DATABASE}
|
|
environment:
|
|
- POSTGRES_PASSWORD=test
|
|
redis:
|
|
image: redis
|
|
|
|
branches:
|
|
include: [ master, develop, feature/* ]
|