Skip to content

Commit

Permalink
Merge pull request #715 from mirackara/codecov
Browse files Browse the repository at this point in the history
CodeCov CI Integration
  • Loading branch information
iamemilio committed Jun 12, 2023
2 parents d68bdd4 + b8d8746 commit 53cd82a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ jobs:
DIRS: ${{ matrix.dirs }}
EXTRATESTING: ${{ matrix.extratesting }}
PIN: ${{ matrix.pin }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

go-agent-arm64:
# Run all unit tests on aarch64 emulator to ensure compatibility with AWS
Expand Down
9 changes: 8 additions & 1 deletion v3/build-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ for dir in $DIRS; do
go test -race -benchtime=1ms -bench=. ./...
go vet ./...
verify_go_fmt



# generate coverprofile
go test ./... -coverprofile=coverage.out -covermode=count -coverpkg= ./...

# Remove sql_driver_optional_methods from coverage.out file if it exists
sed -i '/sql_driver_optional_methods/d' coverage.out

# Test again against the latest version of the dependencies to ensure that
# our instrumentation is up to date. TODO: Perhaps it is possible to
# upgrade all go.mod dependencies to latest master with a go command.
Expand Down

0 comments on commit 53cd82a

Please sign in to comment.