From e3e1f5894c174b950d26fb0af1693a16169b01fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20C=2E=20Morency?= <1102868+fmorency@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:33:37 -0400 Subject: [PATCH] ci: coverage report and badges (#211) * ci: add coverage report * doc: add coverage and build badges --- .github/workflows/e2e.yaml | 34 +++++++++++++++++++++++++++++++++- README.md | 4 ++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 8330196..cef6b8b 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -77,4 +77,36 @@ jobs: docker image ls -a - name: Run Test - run: make ${{ matrix.test }} \ No newline at end of file + 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 }} diff --git a/README.md b/README.md index 1d204d1..97161f5 100644 --- a/README.md +++ b/README.md @@ -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