Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Version bump workflows #180

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: ['1.18']
go: ['1.21']
env:
VERBOSE: 1
GOFLAGS: -mod=readonly
GOPROXY: https://proxy.golang.org

steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.45.0
version: v1.54.0
args: --timeout 5m0s

- name: Test
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.21

- name: GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
with:
version: v1.7.0
version: v1.20.0
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
GORELEASER_GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
GORELEASER_GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Spectral
uses: spectralops/spectral-github-action@v1
uses: spectralops/spectral-github-action@v4
with:
spectral-dsn: ${{ secrets.SPECTRAL_DSN }}
- name: Spectral Scan
run: spectral scan
run: spectral scan
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ var (
defaultLogLevel = "error"
)

// nolint
//nolint
func main() {
ctx := kong.Parse(&CLI)

Expand Down
4 changes: 2 additions & 2 deletions pkg/porcelain.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (p *Porcelain) PrintEntries(entries []core.EnvEntry) {

for i := range entries {
v := entries[i]
ep := ellipsis.Shorten(v.ResolvedPath, 30) // nolint: gomnd
ep := ellipsis.Shorten(v.ResolvedPath, 30) //nolint: gomnd
if !v.IsFound {
fmt.Fprintf(&buf, "[%s %s %s] %s\n", yellow(v.ProviderName), gray(ep), red("missing"), green(v.Key))
} else {
Expand All @@ -123,7 +123,7 @@ func (p *Porcelain) PrintEntries(entries []core.EnvEntry) {
fmt.Fprint(p.Out, out)
}
func maskedValue(v string) string {
return fmt.Sprintf("%s*****", v[:int(math.Min(float64(len(v)), 2))]) // nolint: gomnd
return fmt.Sprintf("%s*****", v[:int(math.Min(float64(len(v)), 2))]) //nolint: gomnd
}

func (p *Porcelain) PrintMatches(matches []core.Match) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/heroku.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (h *Heroku) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) {
return entries, nil
}

func (h *Heroku) Get(p core.KeyPath) (*core.EnvEntry, error) { // nolint:dupl
func (h *Heroku) Get(p core.KeyPath) (*core.EnvEntry, error) { //nolint:dupl
secret, err := h.getSecret(p)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/keypass.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type KeyPass struct {

const KeyPassName = "KeyPass"

// nolint
//nolint
func init() {
metaInfo := core.MetaInfo{
Description: "Keypass",
Expand Down
4 changes: 2 additions & 2 deletions pkg/providers/lastpass.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (l *LastPass) notesToMap(notes string) map[string]string {
results := map[string]string{}
scanner := bufio.NewScanner(strings.NewReader(notes))
for scanner.Scan() {
findings := strings.SplitN(scanner.Text(), ":", 2) // nolint: gomnd
findings := strings.SplitN(scanner.Text(), ":", 2) //nolint: gomnd
if len(findings) == findingNoteCount {
results[strings.TrimSpace(findings[0])] = strings.TrimSpace(findings[1])
}
Expand All @@ -161,7 +161,7 @@ func (l *LastPass) getNodeByKeyName(key, notes string) (string, error) {

scanner := bufio.NewScanner(strings.NewReader(notes))
for scanner.Scan() {
findings := strings.SplitN(scanner.Text(), ":", 2) // nolint: gomnd
findings := strings.SplitN(scanner.Text(), ":", 2) //nolint: gomnd
if len(findings) == findingNoteCount && findings[0] == key {
return strings.TrimSpace(findings[1]), nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/process_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (a *ProcessEnv) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) {

kvs := make(map[string]string)
for _, envs := range os.Environ() {
pair := strings.SplitN(envs, "=", 2) // nolint: gomnd
pair := strings.SplitN(envs, "=", 2) //nolint: gomnd
kvs[pair[0]] = pair[1]
}
var entries []core.EnvEntry
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/vercel.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (ve *Vercel) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) {
return entries, nil
}

func (ve *Vercel) Get(p core.KeyPath) (*core.EnvEntry, error) { // nolint:dupl
func (ve *Vercel) Get(p core.KeyPath) (*core.EnvEntry, error) { //nolint:dupl
secret, err := ve.getSecret(p)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion pkg/teller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (im *InMemProvider) Meta() core.MetaInfo {
return core.MetaInfo{}
}

// nolint
//nolint
func init() {
inmemProviderMeta := core.MetaInfo{
Name: "inmem-provider",
Expand Down
Loading