Skip to content

poc checkpoint state info #1682

poc checkpoint state info

poc checkpoint state info #1682

Workflow file for this run

# Runs unit tests.
name: Unit Tests
on:
pull_request:
merge_group:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Run unit tests and generate report
runs-on: ubuntu-latest
timeout-minutes: 60 # better fail-safe than the default 360 in github actions
steps:
- uses: actions/checkout@v4
- name: Cleanup space
uses: ./.github/actions/cleanup
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
toolchain: nightly-2024-07-27
- name: Install latest nextest release
uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run tests with coverage
run: |
cargo llvm-cov --workspace --locked nextest --profile ci --lcov --output-path lcov.info
- name: Test Summary
uses: test-summary/action@v2
if: always()
with:
paths: "target/nextest/ci/junit.xml"
- name: Publish Test Coverage
uses: codecov/codecov-action@v4.6.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
doc:
name: Run doc tests
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Cleanup space
uses: ./.github/actions/cleanup
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-07-27
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run doctests
run: cargo test --doc --workspace
unit-success:
name: Check that unit tests pass
runs-on: ubuntu-latest
if: always()
needs: [test, doc]
timeout-minutes: 60
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}