File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 6464
6565 - name : Validate samples
6666 if : ${{ env.STACKS != '' }}
67- run : STACKS_DIR=$(pwd)/samples/.cache bash tests/validate_devfile_schemas.sh
67+ run : STACKS_DIR=$(pwd)/samples/.cache bash tests/validate_devfile_schemas.sh --samples
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ POSITIONAL_ARGS=()
4+ SAMPLES=" false"
5+
6+ while [[ $# -gt 0 ]]; do
7+ case $1 in
8+ -s|--samples)
9+ SAMPLES=" true"
10+ shift # past argument
11+ ;;
12+ -* |--* )
13+ echo " Unknown option $1 "
14+ exit 1
15+ ;;
16+ * )
17+ POSITIONAL_ARGS+=(" $1 " ) # save positional arg
18+ shift # past argument
19+ ;;
20+ esac
21+ done
22+
23+ set -- " ${POSITIONAL_ARGS[@]} " # restore positional parameters
324set -x
425
526stacksDir=${STACKS_DIR:- stacks}
@@ -10,5 +31,12 @@ if [[ ! ${stacksDir} = /* ]]; then
1031 stacksDir=$( pwd) /${stacksDir}
1132fi
1233
34+ # Unzip resource files if samples
35+ if [ " ${SAMPLES} " == " true" ]; then
36+ for sample_dir in $( ls $stacksDir ) ; do
37+ unzip -n $stacksDir /$sample_dir /sampleName.zip -d $stacksDir
38+ done
39+ fi
40+
1341ginkgo run --procs 2 \
1442 tests/validate_devfile_schemas -- -stacksPath ${stacksDir} -stackDirs " $stackDirs "
You can’t perform that action at this time.
0 commit comments