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: with:
go-version: 1.17 go-version: 1.17
- run: find . -type f -exec sed -i 's,rhysd/go-github-selfupdate,MedzikUser/go-github-selfupdate,g' {} +
- name: Build - name: Build
run: go build -v ./... run: go build -v ./...

View File

@ -3,8 +3,8 @@ package main
import ( import (
"flag" "flag"
"fmt" "fmt"
"github.com/MedzikUser/go-github-selfupdate/selfupdate"
"github.com/blang/semver" "github.com/blang/semver"
"github.com/MedzikUser/go-github-selfupdate/selfupdate"
"os" "os"
) )

View File

@ -198,7 +198,6 @@ func TestNoReleaseFound(t *testing.T) {
} }
} }
/*
func TestDetectFromBrokenGitHubEnterpriseURL(t *testing.T) { func TestDetectFromBrokenGitHubEnterpriseURL(t *testing.T) {
up, err := NewUpdater(Config{APIToken: "hogehoge", EnterpriseBaseURL: "https://example.com"}) up, err := NewUpdater(Config{APIToken: "hogehoge", EnterpriseBaseURL: "https://example.com"})
if err != nil { if err != nil {
@ -243,7 +242,6 @@ func TestDetectFromGitHubEnterpriseRepo(t *testing.T) {
t.Error("") t.Error("")
} }
} }
*/
func TestFindReleaseAndAsset(t *testing.T) { func TestFindReleaseAndAsset(t *testing.T) {
EnableLog() EnableLog()

View File

@ -325,7 +325,6 @@ func TestBrokenGitHubEnterpriseURL(t *testing.T) {
} }
} }
/*
func TestUpdateFromGitHubEnterprise(t *testing.T) { func TestUpdateFromGitHubEnterprise(t *testing.T) {
token := os.Getenv("GITHUB_ENTERPRISE_TOKEN") token := os.Getenv("GITHUB_ENTERPRISE_TOKEN")
base := os.Getenv("GITHUB_ENTERPRISE_BASE_URL") 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) t.Error("Output from test binary after update is unexpected:", out)
} }
} }
*/
func TestUpdateFromGitHubPrivateRepo(t *testing.T) { func TestUpdateFromGitHubPrivateRepo(t *testing.T) {
token := os.Getenv("GITHUB_PRIVATE_TOKEN") token := os.Getenv("GITHUB_PRIVATE_TOKEN")