update
This commit is contained in:
parent
542dc5db61
commit
e33f9e522e
|
@ -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 ./...
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue