mirror of
https://github.com/servo/servo
synced 2026-05-01 11:57:31 +02:00
This cleans up the GitHub actions yaml a bit and ensures that developers are running this check locally before submitting changes. In addition, it allows adding tests for this check. Finally, this change fixes the tidy tests by upgrading voluptuous for Python 3.10 as well as by reverting an inadvertent change for NixOS compatibility on one of the dummy testing files.
15 lines
295 B
Bash
15 lines
295 B
Bash
#!/bin/bash
|
|
#
|
|
# Tests tidy for shell scripts.
|
|
|
|
set -o nounset
|
|
|
|
# Talking about some `concept in backticks` # shouldn't trigger
|
|
echo "hello world"
|
|
some_var=`echo "command substitution"`
|
|
another_var="$some_var"
|
|
if [ -z "${some_var}" ]; then
|
|
echo "should have used [["
|
|
fi
|
|
[ -z "${another_var}" ]
|