mirror of
https://github.com/rancher/os.git
synced 2025-09-01 23:04:41 +00:00
Add unit tests to CI
This commit is contained in:
8
scripts/unit-test
Executable file
8
scripts/unit-test
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
PACKAGES="$(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u | grep -Ev '(^\.$|.git|.trash-cache|vendor)' | sed -e 's!^!./!' -e 's!$!/...!')"
|
||||
|
||||
go test -race -cover -tags=test $PACKAGES
|
Reference in New Issue
Block a user