Skip to content

allow block mode customization on e2e tests #2110

allow block mode customization on e2e tests

allow block mode customization on e2e tests #2110

Workflow file for this run

name: Tests in docs
on:
pull_request:
branches:
- '*'
paths:
- 'src/**'
- '.github/workflows/doc-test.yml'
- 'justfile'
workflow_dispatch:
push: # Rebuild cache policy
branches:
- 'main'
paths:
- 'Cargo.lock'
- 'Cargo.toml'
jobs:
doc_unit_tests:
name: Documentation Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 25
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Cargo Registry and Target Directory
uses: actions/[email protected]
id: cache-cargo
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-v2-cargo-test-${{ hashFiles('Cargo.lock', 'Cargo.toml') }}
restore-keys: |
${{ runner.os }}-v2-cargo-test-
- name: Set up Rust
if: ${{ steps.cache-cargo.outputs.cache-hit != 'true' }}
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Set up Just
uses: extractions/setup-just@v1
- name: Test docs
run: just test-doc