diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..cb67233 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,38 @@ +version: 2.1 +orbs: + node: circleci/node@5.0.2 +alias: + - &defaults + docker: + - image: cimg/node:lts + executor: node/default +jobs: + branch-job: + <<: *defaults + steps: + - checkout + - node/install-packages + - run: npm test + main-job: + <<: *defaults + steps: + - checkout + - node/install-packages + - run: npm test + - run: semantic-release +workflows: + version: 2 + branch-workflow: + jobs: + - branch-job: + filters: + branches: + ignore: + - main + main-workflow: + jobs: + - main-job: + filters: + branches: + only: + - main diff --git a/.editorconfig b/.editorconfig index 7564632..eb7ea6e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,5 +10,9 @@ trim_trailing_whitespace = true [*.{js,json}] indent_style = space +[*.{yml,yaml}] +indent_size = 2 +indent_style = space + [{package.json,package-lock.json}] indent_size = 2 diff --git a/.gitattributes b/.gitattributes index f8b1024..ab86351 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,6 +10,7 @@ *.js text eol=lf *.json text eol=lf *.md text eol=lf +*.yml text eol=lf # Prefer LF for these files .editorconfig text eol=lf