Skip to content

Commit

Permalink
ci: coverage report and badges (#20)
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 cb6fdfc commit 1a52984
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,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/tokenfactory-coverage/coverage-merged-filtered.out
token: ${{ secrets.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Token Factory

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

The `tokenfactory` module allows any account to create a new token with the name `factory/{creator address}/{subdenom}`. Because tokens are namespaced by creator address, this allows token minting to be permissionless, due to not needing to resolve name collisions. A single account can create multiple denoms, by providing a unique subdenom for each created denom. Once a denom is created, the original creator is given "admin" privileges over the asset. This allows them to:

- Mint their denom to any account
Expand Down

0 comments on commit 1a52984

Please sign in to comment.