From 663d4ee4c4fbc1a2ee2d1ef22e047387a12e9851 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 20 Nov 2019 15:10:15 +0000 Subject: [PATCH 1/2] CI: Measure code coverage for zkcrypto crates --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3735bf199..65789eb9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,7 +105,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: tarpaulin - args: --release --timeout 600 --out Xml --packages "zcash_client_backend,zcash_primitives,zcash_proofs" + args: --release --timeout 600 --out Xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v1.0.3 with: From 94c22ed2cb24ba8281242bd974dd0ce62c45ff2e Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 12 Aug 2020 07:21:22 +0100 Subject: [PATCH 2/2] CI: Fetch Zcash params for code coverage --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65789eb9b..9976eb2ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,6 +101,21 @@ jobs: with: command: install args: cargo-tarpaulin + + - name: Fetch path to Zcash parameters + working-directory: ./zcash_proofs + run: echo "::set-env name=ZCASH_PARAMS::$(cargo run --release --example get-params-path --features directories)" + - name: Cache Zcash parameters + id: cache-params + uses: actions/cache@v2 + with: + path: ${{ env.ZCASH_PARAMS }} + key: ${{ runner.os }}-params + - name: Fetch Zcash parameters + if: steps.cache-params.outputs.cache-hit != 'true' + working-directory: ./zcash_proofs + run: cargo run --release --example download-params --features download-params + - name: Generate coverage report uses: actions-rs/cargo@v1 with: