Skip to content

Commit

Permalink
[drone] Split PR & master pipelines (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomuDeuxfois authored Dec 6, 2023
1 parent b439e4e commit 6673e3a
Showing 1 changed file with 49 additions and 5 deletions.
54 changes: 49 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
kind: pipeline
name: openex-tests
name: openex-tests-pull-request

trigger:
event:
- pull_request

steps:
- name: submodules
Expand All @@ -18,8 +22,51 @@ steps:
- mvn install

- name: frontend-tests
image: nikolaik/python-nodejs:python3.10-nodejs20-alpine
image: node:20.10.0-alpine3.18
commands:
- cd openex-front
- yarn install
- yarn lint
- yarn build
- NODE_OPTIONS=--max_old_space_size=8192 yarn test

services:
- name: minio
image: minio/minio:RELEASE.2023-12-02T10-51-33Z-cpuv1
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: [ server, /data ]

---
kind: pipeline
name: openex-tests-master

trigger:
branch:
- master
event:
exclude:
- pull_request

steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive

- name: api-tests
image: maven:3.8.7-openjdk-18
environment:
MINIO_ENDPOINT: minio
MINIO_PORT: 9000
MINIO_ACCESS-KEY: minioadmin
MINIO_ACCESS-SECRET: minioadmin
commands:
- mvn install

- name: frontend-tests
image: node:20.10.0-alpine3.18
commands:
- cd openex-front
- yarn install
Expand All @@ -42,11 +89,8 @@ steps:
CIRCLECI_TOKEN:
from_secret: circleci_token
when:
branch:
- master
event:
exclude:
- pull_request
- tag

- name: build-circleci-release
Expand Down

0 comments on commit 6673e3a

Please sign in to comment.