ci: add scheduled builds

This commit is contained in:
Rainer Killinger
2023-07-11 16:10:29 +02:00
parent 107a7c5e9e
commit 982b4feb3c
23 changed files with 2266 additions and 1948 deletions

View File

@@ -10,6 +10,7 @@
include:
- local: /backend/backend/.gitlab-ci.yml
- local: /frontend/app/.gitlab-ci.yml
- local: /.gitlab/schedules.gitlab-ci.yml
- local: /.gitlab/publishing.gitlab-ci.yml
rules:
- if: '$CI_COMMIT_MESSAGE =~ /ci: publish release$/'
@@ -25,7 +26,7 @@ variables:
description: Bypass turbo cache
default:
image: registry.gitlab.com/openstapps/projectmanagement/builder:v18
image: registry.gitlab.com/openstapps/openstapps/node-builder
tags:
- performance
interruptible: true
@@ -45,6 +46,7 @@ default:
policy: pull
stages:
- setup
- build
- test
- audit
@@ -95,7 +97,7 @@ stop review:
rules: *deploy-rules
unit:
image: registry.gitlab.com/openstapps/app:v18
image: registry.gitlab.com/openstapps/openstapps/app-builder
stage: test
needs: ['build']
script:
@@ -103,10 +105,13 @@ unit:
# - pnpm i --prefer-offline
# - pnpm test:skip || pnpm i -r --prefer-offline
- pnpm install
- cd node_modules/.pnpm/re2*/node_modules/re2
- npm run install
- cd $CI_PROJECT_DIR
- pnpm test $TURBO_CACHE_BYPASS
coverage: '/Statements[^:]*\:[^:]*\s+([\d\.]+)%/'
artifacts:
when: always
when: on_failure
paths:
- report-junit.xml
- coverage.xml