Skip to content

Commit

Permalink
bump: go version updated to v1.22 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
butuzov committed Feb 7, 2024
1 parent d37262b commit 601ed64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- "1.19"
- "1.20"
- "1.21"
- "1.22"
steps:

- uses: actions/checkout@v4
Expand All @@ -40,12 +41,11 @@ jobs:
- run: make tests

- name: Install goveralls
env: { GO111MODULE: "off" }
if: matrix.go == '1.21'
run: go get github.com/mattn/goveralls
if: matrix.go == '1.22'
run: go install github.com/mattn/goveralls@latest

- name: Coverage - Sending Report to Coveral
if: matrix.go == '1.21'
if: matrix.go == '1.22'
env:
COVERALLS_TOKEN: ${{ secrets.github_token }}
run: goveralls -coverprofile=coverage.cov -service=github
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- v*

env:
GO_VERSION: "1.20"
GO_VERSION: "1.22"

jobs:

Expand Down
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
export PATH := $(PWD)/bin:$(PATH) # ./bin to $PATH
export SHELL := bash # Default Shell

GOPKGS := $(shell go list ./... | grep -vE "(cmd|testdata)" | tr -s '\n' ',' | sed 's/.\{1\}$$//' )

define install_go_bin
@ which $(1) 2>&1 1>/dev/null || GOBIN=$(PWD)/bin go install $(2)
endef
Expand Down Expand Up @@ -38,7 +36,7 @@ tests: ## Run Tests (Summary)
-parallel=2 \
-timeout=1m \
-covermode=atomic \
-coverpkg=$(GOPKGS) -coverprofile=coverage.cov ./...
-coverprofile=coverage.cov ./...

tests-summary: ## Run Tests, but shows summary
tests-summary: bin/tparse
Expand All @@ -47,7 +45,7 @@ tests-summary: bin/tparse
-parallel=2 \
-timeout=1m \
-covermode=atomic \
-coverpkg=$(GOPKGS) -coverprofile=coverage.cov --json ./... | tparse -all
-coverprofile=coverage.cov --json ./... | tparse -all

# Linter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 601ed64

Please sign in to comment.