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 64
64
65
65
- name : Validate samples
66
66
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 1
1
#! /usr/bin/env bash
2
2
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
3
24
set -x
4
25
5
26
stacksDir=${STACKS_DIR:- stacks}
@@ -10,5 +31,12 @@ if [[ ! ${stacksDir} = /* ]]; then
10
31
stacksDir=$( pwd) /${stacksDir}
11
32
fi
12
33
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
+
13
41
ginkgo run --procs 2 \
14
42
tests/validate_devfile_schemas -- -stacksPath ${stacksDir} -stackDirs " $stackDirs "
You can’t perform that action at this time.
0 commit comments