Skip to content

Commit

Permalink
add codecov report
Browse files Browse the repository at this point in the history
  • Loading branch information
yuunlimm committed Nov 20, 2024
1 parent cbfcb9e commit bde6363
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 18 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # get all the history because cargo xtest --change-since origin/main requires it.
- uses: ./.github/actions/dep_install_and_lint
with:
working-directory: rust

- name: rust setup
run: |
sudo apt update && sudo apt install libdw-dev
cargo update
working-directory: rust

- run: rustup component add llvm-tools-preview
- uses: taiki-e/install-action@4fedbddde88aab767a45a011661f832d68202716 # [email protected]
with:
Expand All @@ -48,24 +52,28 @@ jobs:
DOTNET_ROOT: /home/runner/.dotnet
BOOGIE_EXE: /home/runner/.dotnet/tools/boogie
working-directory: rust
- run: ls -R
working-directory: rust
- uses: actions/upload-artifact@v4
with:
name: lcov_unit
path: lcov_unit.info
path: rust/lcov_unit.info

upload-to-codecov:
runs-on: ubuntu-latest
continue-on-error: true # Don't fail if the codecov upload fails
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
needs: [ rust-unit-coverage ]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: lcov_unit

- run: ls -R
- name: Upload coverage to Codecov
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # pin@v3
with:
files: lcov_unit.info,lcov_smoke.info
fail_ci_if_error: true
files: lcov_unit.info
# fail_ci_if_error: true
verbose: true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![codecov](https://codecov.io/gh/aptos-labs/aptos-indexer-processors/graph/badge.svg?token=yOKOnndthm)](https://codecov.io/gh/aptos-labs/aptos-indexer-processors)


# Aptos Indexer Client Guide

This guide will get you started with creating an Aptos indexer with custom parsing. We have several endpoints that provided a streaming RPC of transaction data.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
[
{
"registered_address": "0xb879a253da5c2887155600f61a5a3b7b827588f7b3c486b807975fc663ca5493",
"token_standard": "v1",
"domain": null,
"subdomain": null,
"token_name": null,
"is_deleted": true,
"last_transaction_version": 303690531
},
{
"registered_address": "0xb879a253da5c2887155600f61a5a3b7b827588f7b3c486b807975fc663ca5493",
"token_standard": "v2",
Expand All @@ -16,5 +7,14 @@
"token_name": "pepapati.apt",
"is_deleted": false,
"last_transaction_version": 303690531
},
{
"registered_address": "0xb879a253da5c2887155600f61a5a3b7b827588f7b3c486b807975fc663ca5493",
"token_standard": "v1",
"domain": null,
"subdomain": null,
"token_name": null,
"is_deleted": true,
"last_transaction_version": 303690531
}
]
Empty file.

0 comments on commit bde6363

Please sign in to comment.