Skip to content

Commit

Permalink
Merge pull request #12 from arshamalh/fixing-ci
Browse files Browse the repository at this point in the history
fix: codecov.
  • Loading branch information
arshamalh authored Apr 18, 2024
2 parents 00f221e + a693a5b commit 40d9f7b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Generate Test Coverage

on: [pull_request, push, workflow_dispatch]
on:
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
env:
GO111MODULE: on
GO111MODULE: on
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
Expand All @@ -21,9 +22,7 @@ jobs:
- name: Gather dependencies
run: go mod download
- name: Test
run: |
go test -v -coverpkg ./... -cover ./... -coverprofile coverage.out
go tool cover -func coverage.out -o coverage.out
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand Down
20 changes: 20 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
comment: true

coverage:
range: "70...100"
precision: 1
status:
patch:
default:
informational: true
project:
default:
informational: true

github_checks:
annotations: true

ignore:
- "**.pb.go"
- "mock_**_test.go"
- "**/mocks/*"

0 comments on commit 40d9f7b

Please sign in to comment.