Skip to content

Commit

Permalink
Add coverage reports to all PRs (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronH88 authored Aug 10, 2023
1 parent 5306b3a commit 80b6e89
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,15 @@ jobs:
- name: Interact with the cluster
run: kubectl get nodes

- name: Run receptor tests
run: make test
- name: Run receptor tests with coverage
run: make coverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

- name: get k8s logs
if: ${{ failure() }}
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ testloop: receptor
make test; do \
i=$$((i+1)); done

coverage:
PATH="${PWD}:${PATH}" \
go test ./... $(TESTCMD) -count=1 -race -timeout 5m -coverprofile=coverage.txt -covermode=atomic

kubectl:
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
chmod a+x kubectl
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Receptor
========

[![codecov](https://codecov.io/gh/ansible/receptor/branch/devel/graph/badge.svg?token=RAW5Bvh3hM)](https://codecov.io/gh/ansible/receptor)

Receptor is an overlay network intended to ease the distribution of work across a large and dispersed collection of workers. Receptor nodes establish peer-to-peer connections with each other via existing networks. Once connected, the Receptor mesh provides datagram (UDP-like) and stream (TCP-like) capabilities to applications, as well as robust unit-of-work handling with resiliency against transient network failures.

See the readthedocs page for Receptor at:
Expand Down

0 comments on commit 80b6e89

Please sign in to comment.