mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 15:41:02 -05:00
Fix: Default Linter to automation tests
This commit is contained in:
parent
fdc003eb91
commit
5064b0c67a
2 changed files with 8 additions and 1 deletions
1
.vscode/launch.json
vendored
1
.vscode/launch.json
vendored
|
@ -9,6 +9,7 @@
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Test Linter",
|
"name": "Test Linter",
|
||||||
"program": ".vscode/testlinter.sh",
|
"program": ".vscode/testlinter.sh",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
"internalConsoleOptions": "openOnSessionStart",
|
"internalConsoleOptions": "openOnSessionStart",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"group": "aLinter"
|
"group": "aLinter"
|
||||||
|
|
8
.vscode/testlinter.sh
vendored
8
.vscode/testlinter.sh
vendored
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#At this point you can use the debug console to add export GITHUB_WORKSPACE=/path to test only a specific folder
|
#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
|
#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
|
||||||
|
tmppath=/tmp/lint
|
||||||
|
if [ ! -L tmppath ]; then
|
||||||
|
ln -s $PWD/.automation/test $tmppath
|
||||||
|
fi
|
||||||
|
|
||||||
export RUN_LOCAL=true
|
export RUN_LOCAL=true
|
||||||
/workspaces/super-linter/lib/linter.sh
|
source $PWD/lib/linter.sh
|
Loading…
Reference in a new issue