ci: add CircleCI config

This commit is contained in:
Christopher Willis-Ford 2022-05-20 14:17:27 -07:00
parent 65fcf2826c
commit c65a2acf10
3 changed files with 43 additions and 0 deletions

38
.circleci/config.yml Normal file
View file

@ -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

View file

@ -10,5 +10,9 @@ trim_trailing_whitespace = true
[*.{js,json}] [*.{js,json}]
indent_style = space indent_style = space
[*.{yml,yaml}]
indent_size = 2
indent_style = space
[{package.json,package-lock.json}] [{package.json,package-lock.json}]
indent_size = 2 indent_size = 2

1
.gitattributes vendored
View file

@ -10,6 +10,7 @@
*.js text eol=lf *.js text eol=lf
*.json text eol=lf *.json text eol=lf
*.md text eol=lf *.md text eol=lf
*.yml text eol=lf
# Prefer LF for these files # Prefer LF for these files
.editorconfig text eol=lf .editorconfig text eol=lf