From 664a11ad4a7e0a41f326003f0be9991aab78b24d Mon Sep 17 00:00:00 2001 From: Sterling Hanenkamp Date: Thu, 13 Jun 2024 22:54:29 -0500 Subject: [PATCH 1/3] fix: cicd --- .github/workflows/test.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 99a843c..8f75621 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,19 +10,19 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: 1.20 + cache: false - uses: golangci/golangci-lint-action@v6 with: - version: v1.59.0 - - run: go test ./... - name: Run All Tests - - run: go test ./... -coverprofile=coverage.out - name: Run Tests with Coverage + version: v1.59 + - run: go test -v ./... + - run: | + coveredFiles=$(go list ./... | grep -v 'github.com/zostay/today/\(cmd\|tools/gen/verses\)') + go test $coveredFiles -coverprofile=coverage.out - run: go tool cover -func=coverage.out - name: Display Coverage - name: Coverage Quality Check env: - REQUIRED_COVERAGE: 90 + REQUIRED_COVERAGE: 95 run: | totalCoverage=$(go tool cover -func=coverage.out | grep total | grep -Eo '[0-9]+\.[0-9]+') echo "Total Coverage: $totalCoverage %" From 6faa0403adebe9c76e2de5e26b3c78433e65aba0 Mon Sep 17 00:00:00 2001 From: Sterling Hanenkamp Date: Thu, 13 Jun 2024 23:16:47 -0500 Subject: [PATCH 2/3] fix: go version --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 8c2c7a4..5e9d258 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/zostay/go-std -go 1.19 +go 1.20 require ( github.com/stretchr/testify v1.8.2 From bf41a0360b4130e694b032d191ec06b3a9fbbbb9 Mon Sep 17 00:00:00 2001 From: Sterling Hanenkamp Date: Thu, 13 Jun 2024 23:19:30 -0500 Subject: [PATCH 3/3] fix: go version --- .github/workflows/test.yaml | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8f75621..5fd0514 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.20 + go-version: 1.19 cache: false - uses: golangci/golangci-lint-action@v6 with: diff --git a/go.mod b/go.mod index 5e9d258..8c2c7a4 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/zostay/go-std -go 1.20 +go 1.19 require ( github.com/stretchr/testify v1.8.2