-
-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathrun-qa-checks
More file actions
executable file
·30 lines (24 loc) · 762 Bytes
/
run-qa-checks
File metadata and controls
executable file
·30 lines (24 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -e
# will be 1 by default when run through github actions
CI=${CI:-false}
echo ''
echo 'Python file QA checks...'
openwisp-qa-check --skip-checkmigrations
if [ "$CI" = "false" ]; then
echo 'Shell scripts QA checks ...'
# check shell scripts formatting
sh_files=$(shfmt -f .)
shfmt -d .
fi
echo ''
echo 'Dockerfile QA checks...'
hadolint ./images/openwisp_freeradius/Dockerfile
hadolint ./images/openwisp_nfs/Dockerfile
hadolint ./images/openwisp_postfix/Dockerfile
hadolint ./images/openwisp_base/Dockerfile
hadolint ./images/openwisp_api/Dockerfile
hadolint ./images/openwisp_dashboard/Dockerfile
hadolint ./images/openwisp_nginx/Dockerfile
hadolint ./images/openwisp_openvpn/Dockerfile
hadolint ./images/openwisp_websocket/Dockerfile