mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-06 01:05:54 -05:00
e6cf8d3845
* Move tests to the test directory * Fix linting errors * Add states back * Add xml back
26 lines
679 B
Bash
Executable file
26 lines
679 B
Bash
Executable file
#!/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 #
|
|
##################
|
|
if [ ! -L ${CODE_PATH} ]; then
|
|
# Create symbolic link
|
|
ln -s "${PWD}"/test/linters ${CODE_PATH}
|
|
fi
|
|
|
|
#########################
|
|
# Export to run locally #
|
|
#########################
|
|
export RUN_LOCAL=true
|
|
|
|
# shellcheck source=/dev/null
|
|
source "${PWD}"/lib/linter.sh
|