refactor: merge CI configs
This commit is contained in:
parent
b1e48f70d0
commit
625be42329
4 changed files with 3 additions and 31 deletions
|
@ -1,26 +1,21 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
migrate:
|
testCommit:
|
||||||
image: node:latest
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- cp .config/ci.yml .config/default.yml
|
- cp .config/ci.yml .config/default.yml
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- yarn set version berry
|
- yarn set version berry
|
||||||
- yarn install --immutable
|
- yarn install --immutable
|
||||||
- yarn build
|
- yarn run build
|
||||||
- yarn migrate
|
- yarn migrate
|
||||||
|
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
image: postgres:${DATABASE}
|
image: postgres:15
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=test
|
- POSTGRES_PASSWORD=test
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
|
|
||||||
matrix:
|
|
||||||
DATABASE:
|
|
||||||
- 12
|
|
||||||
- latest
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
include: [ main, develop, feature/* ]
|
include: [ main, develop, feature/* ]
|
|
@ -1,16 +0,0 @@
|
||||||
pipeline:
|
|
||||||
build:
|
|
||||||
image: node:${NODE_VERSION}
|
|
||||||
commands:
|
|
||||||
- corepack enable
|
|
||||||
- yarn set version berry
|
|
||||||
- yarn install --immutable
|
|
||||||
- yarn build
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
NODE_VERSION:
|
|
||||||
- 18.12.1
|
|
||||||
- latest
|
|
||||||
|
|
||||||
branches:
|
|
||||||
include: [ main, develop, feature/* ]
|
|
|
@ -1,7 +0,0 @@
|
||||||
pipeline:
|
|
||||||
build:
|
|
||||||
image: node:latest
|
|
||||||
commands:
|
|
||||||
- corepack enable
|
|
||||||
- yarn set version berry
|
|
||||||
- yarn install --immutable
|
|
Loading…
Reference in a new issue