mirror of https://github.com/k3s-io/k3s
Enable go test in ci
parent
92d04355f4
commit
992ca52c31
|
@ -152,7 +152,7 @@ func TestFailFast(t *testing.T) {
|
|||
defer os.RemoveAll(tmpDir)
|
||||
|
||||
cfg := cmds.Agent{
|
||||
ServerURL: "http://127.0.0.1:-1/",
|
||||
ServerURL: "http://127.0.0.1:0/",
|
||||
DataDir: tmpDir,
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
rm -rf build/data
|
||||
mkdir -p build/data
|
||||
|
||||
GO=${GO-go}
|
||||
|
||||
echo Running: "${GO}" generate
|
||||
"${GO}" generate
|
|
@ -31,3 +31,5 @@ if [ -n "$DIRTY" ]; then
|
|||
git status --porcelain --untracked-files=no
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"${GO}" test -v ./...
|
||||
|
|
Loading…
Reference in New Issue