mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 14:51:31 -07:00
36 lines
586 B
YAML
36 lines
586 B
YAML
|
pipeline:
|
||
|
build:
|
||
|
image: node:${NODE_VERSION}
|
||
|
commands:
|
||
|
- corepack enable
|
||
|
- yarn install
|
||
|
- yarn build
|
||
|
environment:
|
||
|
- DATABASE=12
|
||
|
migrate:
|
||
|
image: node:19.2.0
|
||
|
commands:
|
||
|
- cp .config/ci.yml .config/default.yml
|
||
|
- corepack enable
|
||
|
- yarn install
|
||
|
- yarn migrate
|
||
|
|
||
|
matrix:
|
||
|
NODE_VERSION:
|
||
|
- 18.12.1
|
||
|
- 19.2.0
|
||
|
DATABASE:
|
||
|
- 12
|
||
|
- 13
|
||
|
- 14
|
||
|
- latest
|
||
|
|
||
|
services:
|
||
|
database:
|
||
|
image: postgres:${DATABASE}
|
||
|
environment:
|
||
|
- POSTGRES_PASSWORD=test
|
||
|
|
||
|
branches:
|
||
|
include: [ master, develop, feature/* ]
|