diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d63a842..3b13330 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,10 @@ name: release + on: push: tags: - "v*" + permissions: contents: write id-token: write diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bc5742e..7c65fe1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,13 @@ name: Tests + on: push: branches: [main] pull_request: + branches: [main] + +permissions: + contents: read jobs: test: diff --git a/go.mod b/go.mod index e158530..2002ae0 100644 --- a/go.mod +++ b/go.mod @@ -11,6 +11,8 @@ require ( github.com/cli/shurcooL-graphql v0.0.4 github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d github.com/spf13/cobra v1.10.2 + github.com/stretchr/testify v1.11.1 + golang.org/x/text v0.32.0 ) require ( @@ -41,11 +43,9 @@ require ( github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/spf13/pflag v1.0.10 // indirect - github.com/stretchr/testify v1.11.1 // indirect github.com/thlib/go-timezone-local v0.0.6 // indirect github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect golang.org/x/sys v0.39.0 // indirect golang.org/x/term v0.38.0 // indirect - golang.org/x/text v0.32.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect )