-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
2,822 additions
and
2,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:10 | ||
|
||
working_directory: ~/mjml2html | ||
|
||
environment: | ||
PORT: 3001 | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Install dependencies | ||
command: npm ci | ||
|
||
- run: | ||
name: Running API server | ||
command: npm start | ||
background: true | ||
|
||
- run: | ||
name: Wait for the API server | ||
command: | | ||
dockerize -wait tcp://127.0.0.1:3001 -timeout 1m | ||
curl http://0.0.0.0:3001 | ||
- run: | ||
name: Run tests | ||
command: npm test | ||
|
||
misc: | ||
docker: | ||
- image: circleci/node:10 | ||
|
||
working_directory: ~/mjml2html | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Install dependencies | ||
command: npm ci | ||
|
||
- run: | ||
name: Audit for vulnerabilities | ||
command: npm audit | ||
|
||
- run: | ||
name: Lint files | ||
command: npm run lint | ||
|
||
workflows: | ||
version: 2 | ||
mjml2html: | ||
jobs: | ||
- misc | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "standard", | ||
"plugins": ["jest"], | ||
"env": { | ||
"jest/globals": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:8.11.0 | ||
FROM node:10 | ||
|
||
WORKDIR /app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ app.post('/', (req, res) => { | |
minify, | ||
validationLevel | ||
}) | ||
|
||
res | ||
.type('html') | ||
.status(200) | ||
|
Oops, something went wrong.