all repos — caroster @ ce504dd21ae0860d47347b89e95199ffbdfb894a

[Octree] Group carpool to your event https://caroster.io

.gitlab-ci.yml (view raw)

 1include:
 2  - project: o/infra/templates
 3    file: /gitlab-ci/includes/jobs.yaml
 4
 5Test E2E:
 6  stage: test
 7  image: node:16-alpine
 8  rules:
 9    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_PIPELINE_SOURCE == "merge_request_event"
10      changes:
11        - backend/**/*
12        - e2e/**/*
13  cache:
14    key: node_modules
15    paths:
16      - backend/node_modules
17      - e2e/node_modules
18  script:
19    - cd backend/
20    - yarn
21    - cd ../e2e/
22    - yarn
23    - yarn test
24
25Build NextJS:
26  extends: .build
27  variables:
28    CI_PROJECT_DIR: frontend/
29    CI_REGISTRY_IMAGE: $CI_REGISTRY_IMAGE/next
30  rules:
31    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
32      changes:
33        - frontend/**/*
34
35Build Strapi:
36  extends: .build
37  variables:
38    CI_PROJECT_DIR: backend/
39    CI_REGISTRY_IMAGE: $CI_REGISTRY_IMAGE/strapi
40  rules:
41    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
42      changes:
43        - backend/**/*