This commit is contained in:
MedzikUser 2021-10-27 22:59:25 +02:00
parent 542dc5db61
commit e33f9e522e
4 changed files with 3 additions and 5 deletions

View File

@ -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 ./...

View File

@ -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"
)

View File

@ -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()

View File

@ -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")