From c6a633e1f0a78df62d7b9c61ada46e1df66b3a16 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Wed, 11 Jan 2023 19:42:04 +0100 Subject: [PATCH] refactor: merge CI configs --- .woodpecker/{commitDatabase.yml => commit.yml} | 11 +++-------- .woodpecker/commitBuild.yml | 16 ---------------- .woodpecker/prSecurityCheck.yml | 7 ------- .woodpecker/{commitDocker.yml => testDocker.yml} | 0 4 files changed, 3 insertions(+), 31 deletions(-) rename .woodpecker/{commitDatabase.yml => commit.yml} (76%) delete mode 100644 .woodpecker/commitBuild.yml delete mode 100644 .woodpecker/prSecurityCheck.yml rename .woodpecker/{commitDocker.yml => testDocker.yml} (100%) diff --git a/.woodpecker/commitDatabase.yml b/.woodpecker/commit.yml similarity index 76% rename from .woodpecker/commitDatabase.yml rename to .woodpecker/commit.yml index de711ba19..87014f127 100644 --- a/.woodpecker/commitDatabase.yml +++ b/.woodpecker/commit.yml @@ -1,26 +1,21 @@ pipeline: - migrate: + testCommit: image: node:latest commands: - cp .config/ci.yml .config/default.yml - corepack enable - yarn set version berry - yarn install --immutable - - yarn build + - yarn run build - yarn migrate services: database: - image: postgres:${DATABASE} + image: postgres:15 environment: - POSTGRES_PASSWORD=test redis: image: redis -matrix: - DATABASE: - - 12 - - latest - branches: include: [ main, develop, feature/* ] diff --git a/.woodpecker/commitBuild.yml b/.woodpecker/commitBuild.yml deleted file mode 100644 index ffaf78355..000000000 --- a/.woodpecker/commitBuild.yml +++ /dev/null @@ -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/* ] diff --git a/.woodpecker/prSecurityCheck.yml b/.woodpecker/prSecurityCheck.yml deleted file mode 100644 index 0160c2bca..000000000 --- a/.woodpecker/prSecurityCheck.yml +++ /dev/null @@ -1,7 +0,0 @@ -pipeline: - build: - image: node:latest - commands: - - corepack enable - - yarn set version berry - - yarn install --immutable diff --git a/.woodpecker/commitDocker.yml b/.woodpecker/testDocker.yml similarity index 100% rename from .woodpecker/commitDocker.yml rename to .woodpecker/testDocker.yml