Skip to content

Commit

Permalink
Merge pull request #20 from whiteducksoftware/feat/dep-updates
Browse files Browse the repository at this point in the history
feat: updates for go & deps & gh actions
  • Loading branch information
hutstep authored Dec 14, 2024
2 parents 5a15cda + 58ce665 commit 9655a7c
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 519 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,18 @@ jobs:
name: goreleaser-linux
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Fetch all tags
- name: Fetch all tags
run: git fetch --force --tags
-
name: Set up Go
uses: actions/setup-go@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
Expand All @@ -41,22 +37,18 @@ jobs:
name: goreleaser-windows
runs-on: windows-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Fetch all tags
- name: Fetch all tags
run: git fetch --force --tags
-
name: Set up Go
uses: actions/setup-go@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
Expand Down
12 changes: 6 additions & 6 deletions .goreleaser-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ builds:
- -X go.szostok.io/version.buildDate={{.Date}}

snapshot:
name_template: "{{ incpatch .Version }}"
version_template: "{{ incpatch .Version }}"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^.github:'
- '^.vscode:'
- "^docs:"
- "^test:"
- "^.github:"
- "^.vscode:"

archives:
- name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: zip

release:
disable: true # Linux runner will publish the release (including the windows binaries)
disable: true # Linux runner will publish the release (including the windows binaries)

chocolateys:
- name: azctx
Expand Down
20 changes: 10 additions & 10 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
Expand All @@ -18,24 +18,24 @@ builds:
- -X go.szostok.io/version.version={{.Version}}
- -X go.szostok.io/version.buildDate={{.Date}}
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"

snapshot:
name_template: "{{ incpatch .Version }}"
version_template: "{{ incpatch .Version }}"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^.github:'
- '^.vscode:'
- "^docs:"
- "^test:"
- "^.github:"
- "^.vscode:"

archives:
- name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: zip

brews:
- name: azctx
repository:
Expand All @@ -50,7 +50,7 @@ brews:
name: "{{ .Env.GITHUB_ACTOR }}"
email: "{{ .Env.GITHUB_ACTOR_ID }}+{{ .Env.GITHUB_ACTOR }}@users.noreply.github.com"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
directory: Formula
homepage: "https://github.com/whiteducksoftware/azctx"
description: "Faster switching between Azure Subscriptions in your Azure CLI"
license: "MIT"
Expand Down Expand Up @@ -94,4 +94,4 @@ winget:
base:
owner: microsoft
name: winget-pkgs
branch: master
branch: master
36 changes: 18 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
module github.com/whiteducksoftware/azctx

go 1.18
go 1.23

require (
github.com/Masterminds/sprig/v3 v3.2.3
github.com/briandowns/spinner v1.23.0
github.com/fatih/color v1.15.0
github.com/Masterminds/sprig/v3 v3.3.0
github.com/briandowns/spinner v1.23.1
github.com/fatih/color v1.18.0
github.com/lithammer/fuzzysearch v1.1.8
github.com/manifoldco/promptui v0.9.0
github.com/olekukonko/ts v0.0.0-20171002115256-78ecb04241c0
github.com/sirupsen/logrus v1.9.3
github.com/spf13/afero v1.9.5
github.com/spf13/cobra v1.7.0
github.com/spf13/afero v1.11.0
github.com/spf13/cobra v1.8.1
go.szostok.io/version v1.2.0
golang.org/x/exp v0.0.0-20230810033253-352e893a4cad
golang.org/x/exp v0.0.0-20241210194714-1829a127f884
)

require (
dario.cat/mergo v1.0.1 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.1 // indirect
github.com/Masterminds/semver/v3 v3.3.1 // indirect
github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/chzyer/readline v1.5.1 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/goccy/go-yaml v1.11.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f // indirect
github.com/huandu/xstrings v1.4.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/huandu/xstrings v1.5.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/spf13/cast v1.7.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/term v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/term v0.27.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 9655a7c

Please sign in to comment.