-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use latest microfleet, enable health action, pnpm, node 16 (#114)
BREAKING CHANGE: uses updated configuration for microfleet, underlaying modules had breaking changes, validation error formats have slightly changed (must instead of should, slashes instead of dots). generally no end changes except non-standard configuration for startup needs to be changed. API remains stable
- Loading branch information
Showing
45 changed files
with
8,341 additions
and
9,837 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
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
"`$(npm bin)/mdep bin commitlint`" --edit $1 |
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,8 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
case "$2,$3" in | ||
merge,) | ||
ex "+%s/Merge branch '\([^']\+\)'/chore(merge): \1/i" -scwq $1 ;; | ||
*) ;; | ||
esac |
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,17 +1,12 @@ | ||
{ | ||
"node": "12.16.1", | ||
module.exports = { | ||
"node": "16", | ||
"auto_compose": true, | ||
"with_local_compose": true, | ||
"nycCoverage": false, | ||
"nycReport": false, | ||
"services": [ | ||
"redisCluster", | ||
"rabbitmq", | ||
"postgres" | ||
], | ||
"extras": { | ||
"tester": { | ||
"volumes": [ | ||
"${PWD}:/src:cached" | ||
] | ||
} | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"require": ["./test/configs/config.js"], | ||
"bail": true, | ||
"timeout": 75000, | ||
"report": "spec" | ||
} |
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
{ | ||
"include": [ | ||
"src/**/*.js" | ||
], | ||
"exclude": [ | ||
"src/**/*.spec.js" | ||
], | ||
"sourceMap": false, | ||
"instrument": false, | ||
"cache": true, | ||
"clean": false, | ||
"reporter": [ | ||
"lcov", | ||
"json", | ||
"text-summary" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
version: v1.0 | ||
name: makeomatic/mservice-social | ||
agent: | ||
machine: | ||
type: e1-standard-2 | ||
os_image: ubuntu2004 | ||
|
||
fail_fast: | ||
stop: | ||
when: "branch != 'main'" | ||
|
||
auto_cancel: | ||
running: | ||
when: "branch != 'main'" | ||
|
||
global_job_config: | ||
prologue: | ||
commands: | ||
- set -e | ||
- sem-version node 16 | ||
- curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6 | ||
- checkout | ||
- cache restore node-$(checksum pnpm-lock.yaml) | ||
- pnpm i --frozen-lockfile --prefer-offline --ignore-scripts | ||
- cache store node-$(checksum pnpm-lock.yaml) ~/.pnpm-store | ||
|
||
blocks: | ||
- name: tests | ||
dependencies: [] | ||
task: | ||
secrets: | ||
- name: twitter-keys | ||
jobs: | ||
- name: test project | ||
commands: | ||
- cp ~/.env.twitter .env | ||
- pnpm test | ||
|
||
- name: release | ||
dependencies: ["tests"] | ||
skip: | ||
when: "branch != 'main'" | ||
task: | ||
secrets: | ||
- name: semantic-release | ||
- name: docker-hub | ||
jobs: | ||
- name: release | ||
commands: | ||
- sudo chmod -R 0777 /etc/docker | ||
- echo '{"experimental":true}' > /etc/docker/daemon.json | ||
- sudo service docker restart | ||
- echo $DOCKER_PASSWORD | docker login --username $DOCKER_USERNAME --password-stdin | ||
- pnpm run semantic-release |
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
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
Oops, something went wrong.