Add .gitlab-ci.yml
This commit is contained in:
parent
3a6f825a81
commit
b34946fc30
2 changed files with 32 additions and 1 deletions
31
.gitlab-ci.yml
Normal file
31
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
image: node:12
|
||||||
|
|
||||||
|
variables:
|
||||||
|
NODE_ENV: test
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- lint
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- yarn
|
||||||
|
|
||||||
|
lint-js:
|
||||||
|
stage: lint
|
||||||
|
script: yarn test:lint:js
|
||||||
|
|
||||||
|
lint-sass:
|
||||||
|
stage: lint
|
||||||
|
script: yarn test:lint:sass
|
||||||
|
|
||||||
|
build-development:
|
||||||
|
stage: build
|
||||||
|
script: yarn build:development
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public/packs
|
||||||
|
|
||||||
|
jest:
|
||||||
|
stage: test
|
||||||
|
script: yarn test:jest
|
|
@ -62,7 +62,7 @@ The following commands are supported.
|
||||||
- `yarn manage:translations` - Normalizes translation files. Should always be run after editing i18n strings.
|
- `yarn manage:translations` - Normalizes translation files. Should always be run after editing i18n strings.
|
||||||
|
|
||||||
#### Tests
|
#### Tests
|
||||||
- `yarn test` - Runs all tests (recommended for CI).
|
- `yarn test` - Runs all tests.
|
||||||
|
|
||||||
- `yarn test:lint` - Runs all linter tests.
|
- `yarn test:lint` - Runs all linter tests.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue