summaryrefslogtreecommitdiff
path: root/share/spack
diff options
context:
space:
mode:
Diffstat (limited to 'share/spack')
-rwxr-xr-xshare/spack/qa/run-style-tests7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/spack/qa/run-style-tests b/share/spack/qa/run-style-tests
index 86abeeeac1..72c47ff055 100755
--- a/share/spack/qa/run-style-tests
+++ b/share/spack/qa/run-style-tests
@@ -16,8 +16,13 @@
#
. "$(dirname $0)/setup.sh"
+BASE=""
+if [ -n "$GITHUB_BASE_REF" ]; then
+ BASE="--base ${GITHUB_BASE_REF}"
+fi
+
# verify that the code style is correct
-spack style --root-relative
+spack style --root-relative $BASE
# verify that the license headers are present
spack license verify