Skip to content

Commit

Permalink
fix: greetings workflow (#41)
Browse files Browse the repository at this point in the history
* fix: greetings workflow

* Update validate.yaml
  • Loading branch information
thazelart authored Jul 13, 2024
1 parent 115821d commit 18924f7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 69 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/greetings.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "^1.19.4"
go-version: "^1.22.5"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "^1.19.4"
go-version: "^1.22.5"

- name: Init project
run: |
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.50.1
version: v1.59.1
skip-pkg-cache: true

# _____ _
Expand All @@ -66,10 +66,11 @@ jobs:
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./coverage.txt
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

# ____ _
# | _ \ ___ ___| | _____ _ __
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.19
ARG GO_VERSION=1.22

# Build stage
FROM golang:${GO_VERSION} AS builder
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BIN_NAME=golang-cli-template
IMAGE_NAME=thazelart/${BIN_NAME}
BIN_PATH=${GOPATH}/bin
GO_VERSION=1.19
GO_VERSION=1.22

default: help

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/thazelart/golang-cli-template

go 1.19
go 1.22

require (
github.com/muesli/mango-cobra v1.2.0
Expand Down
3 changes: 2 additions & 1 deletion internal/cmd/version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ func TestGenerateOutput(t *testing.T) {
}

func TestPrint(t *testing.T) {
storeStdout := os.Stdout
r, w, _ := os.Pipe()
os.Stdout = w
Print()
w.Close()

out, _ := io.ReadAll(r)
os.Stdout = storeStdout

assert.Regexp(t, regexp, string(out))
}

0 comments on commit 18924f7

Please sign in to comment.