feat(npm): Mache before_script frei

This commit is contained in:
Timo Beller 2022-07-20 17:53:13 +02:00
parent ff77a88168
commit dcc7966a00
5 changed files with 5 additions and 10 deletions

View File

@ -3,12 +3,11 @@
stage: build stage: build
variables: variables:
FRONTEND_BUILD_DIR: '**/dist' FRONTEND_BUILD_DIR: '**/dist'
before_script: script:
- > - >
if [ "$FRONTEND_DIR" != "" ]; then if [ "$FRONTEND_DIR" != "" ]; then
cd $FRONTEND_DIR cd $FRONTEND_DIR
fi fi
script:
- npm run ci:build - npm run ci:build
artifacts: artifacts:
expire_in: 2 weeks expire_in: 2 weeks

View File

@ -1,12 +1,11 @@
.npm-dependencies: .npm-dependencies:
image: $NODE_IMAGE image: $NODE_IMAGE
stage: dependencies stage: dependencies
before_script: script:
- > - >
if [ "$FRONTEND_DIR" != "" ]; then if [ "$FRONTEND_DIR" != "" ]; then
cd $FRONTEND_DIR cd $FRONTEND_DIR
fi fi
script:
- npm ci --no-audit - npm ci --no-audit
artifacts: artifacts:
expire_in: 1 days expire_in: 1 days

View File

@ -1,12 +1,11 @@
.npm-e2e: .npm-e2e:
image: $NODE_E2E_IMAGE image: $NODE_E2E_IMAGE
stage: verify stage: verify
before_script: script:
- > - >
if [ "$FRONTEND_DIR" != "" ]; then if [ "$FRONTEND_DIR" != "" ]; then
cd $FRONTEND_DIR cd $FRONTEND_DIR
fi fi
script:
- npm run ci:e2e - npm run ci:e2e
artifacts: artifacts:
expire_in: '7d' expire_in: '7d'

View File

@ -1,10 +1,9 @@
.npm-lint: .npm-lint:
image: $NODE_IMAGE image: $NODE_IMAGE
stage: verify stage: verify
before_script: script:
- > - >
if [ "$FRONTEND_DIR" != "" ]; then if [ "$FRONTEND_DIR" != "" ]; then
cd $FRONTEND_DIR cd $FRONTEND_DIR
fi fi
script:
- npm run ci:lint - npm run ci:lint

View File

@ -1,12 +1,11 @@
.npm-verify: .npm-verify:
image: $NODE_IMAGE image: $NODE_IMAGE
stage: verify stage: verify
before_script: script:
- > - >
if [ "$FRONTEND_DIR" != "" ]; then if [ "$FRONTEND_DIR" != "" ]; then
cd $FRONTEND_DIR cd $FRONTEND_DIR
fi fi
script:
- npm run ci:test - npm run ci:test
artifacts: artifacts:
expire_in: '7d' expire_in: '7d'