diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..d7f7bfce5 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/README.md b/README.md index 4e6c7aaab..479b2b35e 100644 --- a/README.md +++ b/README.md @@ -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.