diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 51eed499..3b9f2e3c 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -84,3 +84,30 @@ jobs: - uses: crate-ci/typos@v1.24.1 with: files: . + + coverage: + if: ${{ !startsWith(github.head_ref, 'dependabot/') }} + runs-on: ubuntu-latest + env: + BEERUS_TEST_RUN: 1 + STARKNET_MAINNET_URL: https://starknet-mainnet.g.alchemy.com/starknet/version/rpc/v0_7/${{ secrets.ALCHEMY_KEY }} + STARKNET_SEPOLIA_URL: https://starknet-sepolia.g.alchemy.com/starknet/version/rpc/v0_7/${{ secrets.ALCHEMY_KEY }} + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + # - name: (Free disk space) + # run: rm -rf /opt/hostedtoolcache + - uses: taiki-e/install-action@cargo-llvm-cov + - name: Generate coverage report + run: cargo llvm-cov --json --output-path coverage.json + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + files: ./coverage.json + #token: ${{ secrets.CODECOV_TOKEN }} + + # - name: View context attributes + # uses: actions/github-script@v7 + # with: + # script: console.log(context) diff --git a/src/lib.rs b/src/lib.rs index f74ccb81..1683ce02 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,9 @@ pub mod client; pub mod config; pub mod eth; pub mod exe; + pub mod gen; + pub mod proof; #[cfg(not(target_arch = "wasm32"))]