mirror of
https://github.com/MedzikUser/go-github-selfupdate.git
synced 2024-08-15 03:25:29 +00:00
update
This commit is contained in:
parent
542dc5db61
commit
e33f9e522e
4 changed files with 3 additions and 5 deletions
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
|
@ -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 ./...
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue