From: Alekos Filini Date: Thu, 10 Dec 2020 10:21:49 +0000 (+0100) Subject: [ci] Test the examples in README.md X-Git-Tag: v0.2.0~30 X-Git-Url: http://internal-gitweb-vhost/%22https:/parse/scripts/database/-script/static/struct.Init.html?a=commitdiff_plain;h=a1db9f633bd375c82154b419a9569dc0e66be748;p=bdk [ci] Test the examples in README.md --- diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index e13718ea..e77036cc 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -57,6 +57,27 @@ jobs: if: ${{ matrix.test != 'skip' }} run: cargo test --features ${{ matrix.features }} --no-default-features + test-readme-examples: + name: Test README.md examples + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: cache + uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-test-md-docs-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} + - name: Set default toolchain + run: rustup default nightly + - name: Set profile + run: rustup set profile minimal + - name: Test + run: cargo test --features test-md-docs --no-default-features -- doctest::ReadmeDoctests + test-electrum: name: Test electrum runs-on: ubuntu-16.04