34 lines
450 B
YAML
34 lines
450 B
YAML
default:
|
|
image: node:lts
|
|
|
|
cache:
|
|
paths:
|
|
- node_modules/
|
|
|
|
stages:
|
|
- build
|
|
# - test
|
|
|
|
build:
|
|
stage: build
|
|
except:
|
|
- schedules
|
|
- web
|
|
before_script:
|
|
- npm ci
|
|
script:
|
|
- rm -f .env
|
|
- ln -s example.env .env
|
|
- npm run build
|
|
#
|
|
# test:
|
|
# stage: test
|
|
# except:
|
|
# - schedules
|
|
# - web
|
|
# before_script:
|
|
# - npm ci
|
|
# script:
|
|
# - rm -f .env
|
|
# - ln -s example.env .env
|
|
# - npm run test
|