mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-23 00:34:27 +01:00
Just for fun, re-enable tests on github actions
This commit is contained in:
parent
d4290daeb0
commit
c87ae611fb
2
.github/workflows/go-test.yml
vendored
2
.github/workflows/go-test.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -160,20 +160,22 @@ func checkError(err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func buildServer() {
|
func buildServer() {
|
||||||
for {
|
if runtime.GOOS != "windows" {
|
||||||
wd, err := os.Getwd()
|
for {
|
||||||
if err != nil {
|
wd, err := os.Getwd()
|
||||||
panic(fmt.Sprintf("failed to getwd: %v", err))
|
if err != nil {
|
||||||
}
|
panic(fmt.Sprintf("failed to getwd: %v", err))
|
||||||
if strings.HasSuffix(wd, "/hishtory") {
|
}
|
||||||
break
|
if strings.HasSuffix(wd, "/hishtory") {
|
||||||
}
|
break
|
||||||
err = os.Chdir("../")
|
}
|
||||||
if err != nil {
|
err = os.Chdir("../")
|
||||||
panic(fmt.Sprintf("failed to chdir: %v", err))
|
if err != nil {
|
||||||
}
|
panic(fmt.Sprintf("failed to chdir: %v", err))
|
||||||
if wd == "/" {
|
}
|
||||||
panic("failed to cd into hishtory dir!")
|
if wd == "/" {
|
||||||
|
panic("failed to cd into hishtory dir!")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
version, err := os.ReadFile("VERSION")
|
version, err := os.ReadFile("VERSION")
|
||||||
|
Loading…
Reference in New Issue
Block a user