diff --git a/.editorconfig b/.editorconfig index 980ef21..6b5b0ba 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,3 +10,7 @@ end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true + +[*.{yaml,yml}] +indent_style = space +indent_size = 2 diff --git a/.gitignore b/.gitignore index 3056c3c..15ec2b7 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ !/flake.lock ### Repository configuration ### +!/.gitlab-ci.yml !/.husky/commit-msg !/conventional.config.js diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5bf820e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +stages: [build, test] + +build: + stage: build + cache: &cached-deps + key: + files: [package-lock.json] + paths: [node_modules/] + script: + - npm ci + - npm run build --workspaces --if-present + +test: + stage: test + cache: + <<: &cached-deps + script: + - npm run test --workspaces --if-present diff --git a/packages/conventional/package.json b/packages/conventional/package.json index c6c1c27..69b7437 100644 --- a/packages/conventional/package.json +++ b/packages/conventional/package.json @@ -20,7 +20,7 @@ ], "scripts": { "build": "tsc --build", - "test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test", + "test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test --test-reporter=dot", "pretest": "npm run build", "prepack": "npm run build" }, diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 227a742..abf6989 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -21,7 +21,7 @@ ], "scripts": { "build": "tsc --build", - "test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test", + "test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test --test-reporter=dot", "pretest": "npm run build", "prepack": "npm run build" }