Add github build & test actions
Signed-off-by: Casey Callendrello <cdc@redhat.com>
This commit is contained in:
@ -3,12 +3,18 @@
|
||||
# Run CNI plugin tests.
|
||||
#
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
source ./build_windows.sh
|
||||
|
||||
echo "Running tests"
|
||||
|
||||
PLUGINS=$(cat plugins/windows_only.txt | tr '\n' ' ')
|
||||
GINKGO_FLAGS="-p -r --randomizeAllSpecs --randomizeSuites --failOnPending --progress pkg/hns $PLUGINS"
|
||||
PKGS="./pkg/hns/..."
|
||||
|
||||
bash -c "cd ${GOPATH}/src/${REPO_PATH}; PATH='${GOROOT}/bin:$(pwd)/bin:${PATH}' ginkgo ${GINKGO_FLAGS}"
|
||||
PLUGINS=$(cat plugins/windows_only.txt | dos2unix )
|
||||
for d in $PLUGINS; do
|
||||
PKGS="$PKGS ./$d/..."
|
||||
done
|
||||
|
||||
echo "testing packages $PKGS"
|
||||
go test -v $PKGS -ginkgo.randomizeAllSpecs -ginkgo.failOnPending -ginkgo.progress
|
||||
|
Reference in New Issue
Block a user