Skip to content

Commit

Permalink
Merge pull request #41 from Lullabot/justafish/short-config-check
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeyetwolf committed Apr 4, 2022
2 parents a1517c3 + e4dcb83 commit 99b5cc4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,17 @@ tasks:
npm run eslint .
fi
config:
desc: Verifies that exported config matches the config in Drupal
desc: "Verifies that exported config matches the config in Drupal. Run with format=short to skip showing the full table of diffs."
# @todo JUnit output
cmds:
- if [ $(./vendor/bin/drush config:status --format=string | wc -w) -gt 0 ]; then echo "Config export does not match"; ./vendor/bin/drush config:status; exit 1; fi
- |
if [ $(./vendor/bin/drush config:status --format=string | wc -w) -gt 0 ]; then
echo "Config export does not match"
if [ "{{.format}}" != "short" ]; then
./vendor/bin/drush config:status
fi
exit 1
fi
phpstan:
dec: Runs PHPStan with mglaman/phpstan-drupal
cmds:
Expand Down

0 comments on commit 99b5cc4

Please sign in to comment.