Skip to content

Commit

Permalink
ci: setup Danger JS in CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanmaisse committed Jul 27, 2021
1 parent d9ff2bf commit b65304b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ jobs:
name: Run unit tests
command: npm run test:coverage -- --ci --runInBand

dangerjs:
executor:
class: small
name: node-lts
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Run Danger JS
command: npm run danger

build:
executor:
class: large
Expand Down Expand Up @@ -117,6 +129,14 @@ workflows:
- lint-test:
requires:
- install
- dangerjs:
pre-steps:
- secrethub/env-export:
secret-path: graviteeio/cicd/graviteebot/github_personal_access_token
var-name: DANGER_GITHUB_API_TOKEN
context: gravitee-qa
requires:
- install
- build:
requires:
- install
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"scripts": {
"build": "npm run docs && npm run check:i18n && npm run generate:theme && npm run generate:dist && build-storybook -s assets --quiet",
"check:i18n": "node tasks/check-i18n.js",
"danger": "danger",
"danger": "danger ci",
"docs": "wca analyze src/** --format markdown --outDir .docs && wca analyze src/** --outFile .docs/custom-elements.json && node tasks/generate-docs.js",
"generate:dist": "node tasks/generate-dist.js",
"generate:icons": "node tasks/generate-icons.js && npm run lint:fix",
Expand Down

0 comments on commit b65304b

Please sign in to comment.