Skip to content

Commit e324b55

Browse files
author
Florian Lorétan
committed
SLT-234: Add basic checks to validation step.
1 parent d5849e0 commit e324b55

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

orb.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,31 @@ jobs:
2323
- checkout:
2424
path: ~/project
2525
- phpcs
26+
- run:
27+
name: Silta basic checks
28+
command: |
29+
files=(
30+
silta/silta.yml
31+
silta/silta-prod.yml
32+
silta/nginx.Dockerfile
33+
silta/php.Dockerfile
34+
silta/shell.Dockerfile
35+
web/sites/default/settings.silta.php
36+
)
37+
38+
for file in ${files[@]}; do
39+
if [ -f $file ]; then
40+
echo "✅ $file is present"
41+
else
42+
echo "❌ $file is missing from the repository."
43+
exit 1
44+
fi
45+
done
46+
47+
if grep "drush.*8" composer.json; then
48+
echo "❌ Silta is not compatible with drush 8."
49+
fi
50+
2651
- steps: <<parameters.post-validation>>
2752

2853
drupal-build-deploy:

0 commit comments

Comments
 (0)