diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 449fc1c..f35cacb 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,6 +17,8 @@ jobs: with: go-version: 1.17 + - run: find . -type f -exec sed -i 's,rhysd/go-github-selfupdate,MedzikUser/go-github-selfupdate,g' {} + + - name: Build run: go build -v ./... diff --git a/cmd/selfupdate-example/main.go b/cmd/selfupdate-example/main.go index 488998f..11a9a41 100644 --- a/cmd/selfupdate-example/main.go +++ b/cmd/selfupdate-example/main.go @@ -3,8 +3,8 @@ package main import ( "flag" "fmt" - "github.com/MedzikUser/go-github-selfupdate/selfupdate" "github.com/blang/semver" + "github.com/MedzikUser/go-github-selfupdate/selfupdate" "os" ) diff --git a/selfupdate/detect_test.go b/selfupdate/detect_test.go index 1453424..d64fe65 100644 --- a/selfupdate/detect_test.go +++ b/selfupdate/detect_test.go @@ -198,7 +198,6 @@ func TestNoReleaseFound(t *testing.T) { } } -/* func TestDetectFromBrokenGitHubEnterpriseURL(t *testing.T) { up, err := NewUpdater(Config{APIToken: "hogehoge", EnterpriseBaseURL: "https://example.com"}) if err != nil { @@ -243,7 +242,6 @@ func TestDetectFromGitHubEnterpriseRepo(t *testing.T) { t.Error("") } } -*/ func TestFindReleaseAndAsset(t *testing.T) { EnableLog() diff --git a/selfupdate/update_test.go b/selfupdate/update_test.go index 04c049e..480b41a 100644 --- a/selfupdate/update_test.go +++ b/selfupdate/update_test.go @@ -325,7 +325,6 @@ func TestBrokenGitHubEnterpriseURL(t *testing.T) { } } -/* func TestUpdateFromGitHubEnterprise(t *testing.T) { token := os.Getenv("GITHUB_ENTERPRISE_TOKEN") base := os.Getenv("GITHUB_ENTERPRISE_BASE_URL") @@ -369,7 +368,6 @@ func TestUpdateFromGitHubEnterprise(t *testing.T) { t.Error("Output from test binary after update is unexpected:", out) } } -*/ func TestUpdateFromGitHubPrivateRepo(t *testing.T) { token := os.Getenv("GITHUB_PRIVATE_TOKEN")