Skip to content

Commit

Permalink
Merge pull request #1169 from blackflux/dev
Browse files Browse the repository at this point in the history
[Gally]: master <- dev
  • Loading branch information
simlu committed Jun 15, 2022
2 parents e15d67a + e80899d commit 88d886a
Show file tree
Hide file tree
Showing 23 changed files with 1,805 additions and 5,867 deletions.
5 changes: 0 additions & 5 deletions .babelrc

This file was deleted.

28 changes: 28 additions & 0 deletions .c8rc.json
@@ -0,0 +1,28 @@
{
"exclude": [
"gardener.js",
"node_modules/*",
"coverage/*",
"lib/*",
"test/hot.js"
],
"temp-directory": "./coverage/.c8_output",
"reports-dir": "./coverage",
"check-coverage": true,
"per-file": false,
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"include": [
"**/*.js"
],
"reporter": [
"lcov",
"text-summary"
],
"extension": [],
"all": true,
"skip-full": true,
"clean": true
}
65 changes: 33 additions & 32 deletions .circleci/config.yml
Expand Up @@ -9,15 +9,15 @@ workflows:
- test-node-v14:
requires:
- gally-create-pr
- test-node-v12:
- test-node-v18:
requires:
- gally-create-pr
- gally-auto-approve:
requires:
- gally-create-pr
- test-node-v16
- test-node-v14
- test-node-v12
- test-node-v18
filters:
branches:
only: /dependabot\/.*/
Expand All @@ -26,7 +26,7 @@ workflows:
- gally-create-pr
- test-node-v16
- test-node-v14
- test-node-v12
- test-node-v18
filters:
branches:
only: master
Expand Down Expand Up @@ -67,10 +67,30 @@ jobs:
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run: yarn global add semantic-release
- run: yarn run semantic-release
test-node-v12:
gally-auto-approve:
docker:
- image: circleci/node:12
- image: circleci/node:14
steps:
- run:
name: Set PR number
command: >
echo 'export
CIRCLE_PR_NUMBER="${CIRCLE_PR_NUMBER:-${CIRCLE_PULL_REQUEST##*/}}"'
>> $BASH_ENV
source $BASH_ENV
echo $CIRCLE_PR_NUMBER
- checkout
- run: sudo yarn global add gally
- run: >-
ga approve $CIRCLE_PR_NUMBER --condition
"base.ref=dev&state=open&user.login=dependabot-preview[bot]"
test-node-v14:
docker:
- image: circleci/node:14
steps:
- checkout
- run:
Expand Down Expand Up @@ -100,28 +120,14 @@ jobs:
- run: >-
(git add . && git diff-index --quiet HEAD --) || (git status && exit
1);
gally-auto-approve:
docker:
- image: circleci/node:14
steps:
- run:
name: Set PR number
command: >
echo 'export
CIRCLE_PR_NUMBER="${CIRCLE_PR_NUMBER:-${CIRCLE_PULL_REQUEST##*/}}"'
>> $BASH_ENV
source $BASH_ENV
echo $CIRCLE_PR_NUMBER
- checkout
- run: sudo yarn global add gally
- run: >-
ga approve $CIRCLE_PR_NUMBER --condition
"base.ref=dev&state=open&user.login=dependabot-preview[bot]"
test-node-v14:
command: |
if [[ "${CIRCLE_BRANCH}" == "master" ]]; then
yarn run coveralls
fi
test-node-v16:
docker:
- image: circleci/node:14
- image: circleci/node:16
steps:
- checkout
- run:
Expand Down Expand Up @@ -151,14 +157,9 @@ jobs:
- run: >-
(git add . && git diff-index --quiet HEAD --) || (git status && exit
1);
- run:
command: |
if [[ "${CIRCLE_BRANCH}" == "master" ]]; then
yarn run coveralls
fi
test-node-v16:
test-node-v18:
docker:
- image: circleci/node:16
- image: cimg/node:18.0
steps:
- checkout
- run:
Expand Down
9 changes: 6 additions & 3 deletions .eslintrc.json
Expand Up @@ -6,7 +6,7 @@
"plugin:markdown/recommended"
],
"rules": {
"@blackflux/rules/istanbul-prevent-ignore": 1,
"@blackflux/rules/c8-prevent-ignore": 1,
"@blackflux/rules/kebab-case-enforce": 1,
"max-len": ["error", {"code": 120}],
"mocha/no-exclusive-tests": "error",
Expand Down Expand Up @@ -37,10 +37,13 @@
"@blackflux/rules/prevent-typeof-object": 1,
"mocha/no-mocha-arrows": 0,
"mocha/no-hooks-for-single-case": 0,
"import/no-useless-path-segments": [2, {"commonjs": true}]
"import/no-useless-path-segments": [2, {"commonjs": true}],
"import/extensions": [2, "always"],
"import/prefer-default-export": 0
},
"env": {"es6": true, "node": true, "mocha": true},
"globals": {},
"plugins": ["json", "mocha", "@blackflux/rules"],
"parser": "babel-eslint"
"parser": "@babel/eslint-parser",
"parserOptions": {"requireConfigFile": false}
}
2 changes: 1 addition & 1 deletion .gally.json
Expand Up @@ -25,7 +25,7 @@
"ci/circleci: gally-create-pr",
"ci/circleci: test-node-v16",
"ci/circleci: test-node-v14",
"ci/circleci: test-node-v12"
"ci/circleci: test-node-v18"
]
},
"enforce_admins": true,
Expand Down
5 changes: 3 additions & 2 deletions .roboconfig.json
Expand Up @@ -8,9 +8,10 @@
"packageName": "secure-chest",
"projectName": "secure-chest",
"owner": "simlu",
"nodeVersion": "12",
"nodeVersion": "14",
"ownerName": "Lukas Siemon",
"mergeBot": "MrsFlux"
"mergeBot": "MrsFlux",
"nccEnabled": false
}
}
}
3 changes: 2 additions & 1 deletion .roboconfig.lock
@@ -1,6 +1,6 @@
{
"@blackflux/robo-config-plugin": [
".babelrc",
".c8rc.json",
".circleci/config.yml",
".dependabot/config.yml",
".editorconfig",
Expand All @@ -16,6 +16,7 @@
"gardener.js",
"package.json",
"src/index.js",
"test/hot.js",
"test/index.spec.js"
]
}

0 comments on commit 88d886a

Please sign in to comment.