diff --git a/.circleci/config.yml b/.circleci/config.yml index f971c4c..77020a4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,7 @@ jobs: # specify any bash command here prefixed with `run: ` - run: apt-get update - run: apt-get -y install xvfb + # # override: # './...' is a relative pattern which means all subdirectories # - run: go get -u github.com/go-vgo/robotgo diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 14e68b8..41acbd6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,5 +29,6 @@ jobs: - name: Build run: go build -v . - # - name: Test - # run: go test -v . + - name: Test + run: go test -v robot_info_test.go + # run: go test -v . diff --git a/robot_info_test.go b/robot_info_test.go index 3636552..91d9a47 100644 --- a/robot_info_test.go +++ b/robot_info_test.go @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -package robotgo +package robotgo_test import ( "fmt" @@ -16,22 +16,23 @@ import ( "runtime" "testing" + "github.com/go-vgo/robotgo" "github.com/vcaesar/tt" ) func TestGetVer(t *testing.T) { fmt.Println("go version: ", runtime.Version()) - ver := GetVersion() + ver := robotgo.GetVersion() - tt.Expect(t, Version, ver) + tt.Expect(t, robotgo.Version, ver) } func TestGetScreenSize(t *testing.T) { - x, y := GetScreenSize() + x, y := robotgo.GetScreenSize() log.Println("GetScreenSize: ", x, y) } func TestGetSysScale(t *testing.T) { - s := SysScale() + s := robotgo.SysScale() log.Println("SysScale: ", s) }