Merge branch 'danger' into 'develop'

Add Danger

See merge request soapbox-pub/soapbox-fe!1535
environments/review-develop-3zknud/deployments/285
Alex Gleason 2 years ago
commit 04145ac1b0

@ -22,6 +22,12 @@ deps:
changes:
- yarn.lock
danger:
stage: test
script: yarn danger ci
only:
- merge_requests
lint-js:
stage: test
script: yarn lint:js

@ -0,0 +1,13 @@
import { danger, warn, message } from 'danger';
const docs = danger.git.fileMatch('docs/**/*.md');
const app = danger.git.fileMatch('app/**/*.(js|ts|tsx)');
const tests = danger.git.fileMatch('*/__tests__/*');
if (docs.edited) {
message('Thanks - We :heart: our [documentarians](http://www.writethedocs.org/)!');
}
if (app.modified && !tests.modified) {
warn('You have app changes without tests.');
}

@ -209,6 +209,7 @@
"babel-eslint": "^10.1.0",
"babel-jest": "^28.1.0",
"cross-env": "^7.0.3",
"danger": "^11.0.7",
"eslint": "^7.0.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsdoc": "^39.2.9",

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save