Skip to content

Commit

Permalink
ci: coverage report and badges (#211)
Browse files Browse the repository at this point in the history
* ci: add coverage report

* doc: add coverage and build badges
  • Loading branch information
fmorency authored Aug 9, 2024
1 parent 8d1a5f4 commit e3e1f58
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,36 @@ jobs:
docker image ls -a
- name: Run Test
run: make ${{ matrix.test }}
run: make ${{ matrix.test }}

coverage:
needs: build-docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Download Host Artifact
uses: actions/download-artifact@v3
with:
name: ${{ env.IMAGE_NAME }}
path: /tmp

- name: Load Docker Image
run: |
docker image load -i ${{ env.TAR_PATH }}
docker image ls -a
- name: Run coverage
run: make coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: /tmp/poa-coverage/coverage-merged-filtered.out
token: ${{ secrets.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# `PoA` Module

![GitHub commit check runs](https://img.shields.io/github/check-runs/strangelove-ventures/poa/main)
![Codecov](https://img.shields.io/codecov/c/github/strangelove-ventures/poa)


The Proof of Authority (PoA) module allows for permissioned networks to be controlled by a predefined set of validators to verify transactions. This implementation extends the Cosmos-SDK's x/staking module to a set of administrators over the chain. These administrators gate keep the chain by whitelisting validators, updating consensus power, and removing validators from the network.

## Security
Expand Down

0 comments on commit e3e1f58

Please sign in to comment.