Skip to content
Snippets Groups Projects
Commit 12edcaa9 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Add gitlab CI

parent 504dc479
No related branches found
No related tags found
1 merge request!4Setup CI
Pipeline #5575 failed
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
image: node:14-alpine
stages:
- test
- build
# Prevent detached merge request pipelines
# https://docs.gitlab.com/ee/ci/merge_request_pipelines/
# Those do not run the environment on_stop jobs when MRs are closed/merged
# or when branches get deleted, unlike branch pipelines.
workflow:
rules:
- if: '$CI_MERGE_REQUEST_ID'
when: never
- when: always
before_script:
- npm ci
lint:
stage: test
before_script:
- apk add --update python3 bash git
- pip3 install pre-commit
script:
- pre-commit run -a
audit:
stage: test
script:
- npm audit --parseable
allow_failure: true
.build:
stage: build
# Ignore frontend-audit to speed up CI builds
needs:
- lint
artifacts:
paths:
- dist
expire_in: 2 weeks
build-library:
extends: .build
script:
- npm run build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment