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
variables:
FRONTEND_BUILD_DIR: '**/dist'
before_script:
script:
- >
if [ "$FRONTEND_DIR" != "" ]; then
cd $FRONTEND_DIR
fi
script:
- npm run ci:build
artifacts:
expire_in: 2 weeks

View File

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

View File

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

View File

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

View File

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