From 3415d33058b3f825b73a4885d38d4cc1589cc1c9 Mon Sep 17 00:00:00 2001 From: amanjpro Date: Thu, 12 Dec 2024 14:02:22 -0500 Subject: [PATCH] now --- .github/workflows/pr.yml | 6 ++--- .testcoverage.yml | 55 ---------------------------------------- 2 files changed, 3 insertions(+), 58 deletions(-) delete mode 100644 .testcoverage.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 04920b8..8e5a408 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -34,7 +34,7 @@ jobs: run: pre-commit install - name: Run all pre-commit hooks run: SKIP=golangci-lint pre-commit run --all-files - build: + test: runs-on: ubuntu-24.04 steps: - name: Checkout code @@ -65,11 +65,11 @@ jobs: - name: Run go tests env: STORAGE_EMULATOR_HOST: http://0.0.0.0:4443 - run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./... + run: go test ./... -coverprofile=./cover.out -covermode=atomic - name: check test coverage uses: vladopajic/go-test-coverage@v2 with: - profile: cover.out + profile: ./cover.out local-prefix: "github.com/Optable/optable-pair-cli" threshold-total: 60 - name: Cleanup diff --git a/.testcoverage.yml b/.testcoverage.yml deleted file mode 100644 index 3ad750d..0000000 --- a/.testcoverage.yml +++ /dev/null @@ -1,55 +0,0 @@ -# (mandatory) -# Path to coverage profile file (output of `go test -coverprofile` command). -# -# For cases where there are many coverage profiles, such as when running -# unit tests and integration tests separately, you can combine all those -# profiles into one. In this case, the profile should have a comma-separated list -# of profile files, e.g., 'cover_unit.out,cover_integration.out'. -profile: cover.out - -# (optional; but recommended to set) -# When specified reported file paths will not contain local prefix in the output. -local-prefix: "github.com/Optable/optable-pair-cli" - -# Holds coverage thresholds percentages, values should be in range [0-100]. -threshold: - # (optional; default 0) - # Minimum coverage percentage required for individual files. - file: 60 - - # (optional; default 0) - # Minimum coverage percentage required for each package. - package: 60 - - # (optional; default 0) - # Minimum overall project coverage percentage required. - total: 60 - -# Holds regexp rules which will override thresholds for matched files or packages -# using their paths. -# -# First rule from this list that matches file or package is going to apply -# new threshold to it. If project has multiple rules that match same path, -# override rules should be listed in order from specific to more general rules. -# override: -# # Increase coverage threshold to 100% for `foo` package -# # (default is 80, as configured above in this example). -# - path: ^pkg/lib/foo$ -# threshold: 100 - -# # Holds regexp rules which will exclude matched files or packages -# # from coverage statistics. -# exclude: -# # Exclude files or packages matching their paths -# paths: -# - \.pb\.go$ # excludes all protobuf generated files -# - ^pkg/bar # exclude package `pkg/bar` - -# File name of go-test-coverage breakdown file, which can be used to -# # analyze coverage difference. -# breakdown-file-name: '' -# -# diff: -# # File name of go-test-coverage breakdown file which will be used to -# # report coverage difference. -# base-breakdown-file-name: ''