Skip to content

Commit

Permalink
chore: bump go and adding better tests
Browse files Browse the repository at this point in the history
Signed-off-by: Hamed Faramarzi <[email protected]>
  • Loading branch information
ha36d committed Oct 31, 2023
1 parent b0c622c commit e9d42af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
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@v4
with:
go-version: '1.18.0' # The Go version to download (if necessary) and use.
go-version: '1.21.0' # The Go version to download (if necessary) and use.

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.18.0' # The Go version to download (if necessary) and use.
go-version: '1.21.0' # The Go version to download (if necessary) and use.

# Install all the dependencies
- name: Install dependencies
Expand All @@ -49,4 +49,15 @@ jobs:
# Run testing on the code
- name: Run testing
run: cd cmd && go test -v
run: go test ./... -v

# Run testing coverage on the code
- name: Run Coverage
run: go test ./... -coverprofile=coverage.out

# Artifact
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: ./coverage.out
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/ha36d/vault-utils

go 1.18
go 1.21

require github.com/spf13/viper v1.15.0

Expand Down

0 comments on commit e9d42af

Please sign in to comment.