Skip to content

Commit

Permalink
chore: bump major and make tests more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys committed Dec 11, 2024
1 parent f9eee2f commit 3aa704b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .woodpecker/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ steps:
- git sv release-notes -t ${CI_COMMIT_TAG:-next} -o CHANGELOG.md
- cat CHANGELOG.md

- name: go-major
image: quay.io/thegeeklab/alpine-tools
commands:
- go-major
when:
- event: [tag]

- name: publish-github
image: docker.io/plugins/github-release
settings:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sort"
"strings"

plugin_template "github.com/thegeeklab/wp-plugin-go/v3/template"
plugin_template "github.com/thegeeklab/wp-plugin-go/v4/template"

"github.com/urfave/cli/v2"
)
Expand Down
9 changes: 7 additions & 2 deletions exec/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import (
)

func TestCmdRun(t *testing.T) {
echoPath, err := exec.LookPath("echo")
if err != nil {
t.Fatal(err)
}

tests := []struct {
name string
cmd *Cmd
Expand All @@ -22,7 +27,7 @@ func TestCmdRun(t *testing.T) {
cmd: &Cmd{
Trace: true,
Cmd: &exec.Cmd{
Path: "/usr/bin/echo",
Path: echoPath,
Args: []string{"echo", "hello"},
},
},
Expand All @@ -34,7 +39,7 @@ func TestCmdRun(t *testing.T) {
cmd: &Cmd{
Trace: false,
Cmd: &exec.Cmd{
Path: "/usr/bin/echo",
Path: echoPath,
Args: []string{"echo", "hello"},
},
},
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/thegeeklab/wp-plugin-go/v3
module github.com/thegeeklab/wp-plugin-go/v4

go 1.23.4

Expand Down
2 changes: 1 addition & 1 deletion plugin/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
plugin_trace "github.com/thegeeklab/wp-plugin-go/v3/trace"
plugin_trace "github.com/thegeeklab/wp-plugin-go/v4/trace"
"github.com/urfave/cli/v2"
"golang.org/x/net/proxy"
)
Expand Down

0 comments on commit 3aa704b

Please sign in to comment.