2020-06-29 10:08:04 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# At this point you can use the debug console to add export GITHUB_WORKSPACE=/path to test only a specific folder
|
|
|
|
# You can also use ln -s /path /tmp/lint as an alternative
|
|
|
|
# If you do neither, this will default to running against the test automation files
|
|
|
|
|
|
|
|
###########
|
|
|
|
# GLOBALS #
|
|
|
|
###########
|
|
|
|
CODE_PATH='/tmp/lint' # Path to code base
|
|
|
|
|
|
|
|
##################
|
|
|
|
# Check the path #
|
|
|
|
##################
|
2020-07-21 13:09:07 -04:00
|
|
|
if [ ! -L ${CODE_PATH} ]; then
|
2020-06-29 10:08:04 -04:00
|
|
|
# Create symbolic link
|
2023-12-15 03:50:35 -05:00
|
|
|
ln -s "${PWD}"/test/linters ${CODE_PATH}
|
2020-06-19 13:48:39 -04:00
|
|
|
fi
|
|
|
|
|
2020-06-29 10:08:04 -04:00
|
|
|
#########################
|
|
|
|
# Export to run locally #
|
|
|
|
#########################
|
2020-06-19 12:54:36 -04:00
|
|
|
export RUN_LOCAL=true
|
2020-06-29 10:08:04 -04:00
|
|
|
|
2020-06-30 10:56:15 -04:00
|
|
|
# shellcheck source=/dev/null
|
2020-07-21 13:09:07 -04:00
|
|
|
source "${PWD}"/lib/linter.sh
|