sforkowany z mirror/soapbox
Add .gitlab-ci.yml
rodzic
3a6f825a81
commit
b34946fc30
|
@ -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.
|
||||
|
||||
#### Tests
|
||||
- `yarn test` - Runs all tests (recommended for CI).
|
||||
- `yarn test` - Runs all tests.
|
||||
|
||||
- `yarn test:lint` - Runs all linter tests.
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue