Skip to content

chore: update replica version to 719ff387 #7508

chore: update replica version to 719ff387

chore: update replica version to 719ff387 #7508

Workflow file for this run

name: Check cargo (unit) test
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
# When getting Rust dependencies, retry on network error:
CARGO_NET_RETRY: 10
# Use the local .curlrc
CURL_HOME: .
# Disable DFX telemetry
DFX_TELEMETRY: 'off'
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
sources: ${{ steps.filter.outputs.sources }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: github.event_name == 'push'
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter
with:
filters: |
sources:
- .github/workflows/unit.yml
- src/**
- Cargo.lock
- Cargo.toml
- rust-toolchain.toml
test:
if: needs.changes.outputs.sources == 'true'
needs: changes
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-24.04, ubuntu-24.04-arm, macos-15 ]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# Remove pre-installed stable toolchain so it doesn't pollute the
# rust-cache environment hash. macOS (and sometimes Linux) runner
# images ship with varying stable versions, making the hash
# non-deterministic and causing constant cache misses.
- name: Remove pre-installed Rust stable toolchain
run: rustup toolchain remove stable 2>/dev/null || true
# This step also handles Rust-specific caching
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
cache-shared-key: debug
- name: Check cargo test
run: cargo test --workspace --all-features --no-fail-fast
aggregate:
name: unit:required
if: always() && needs.changes.outputs.sources == 'true'
needs: [changes, test]
runs-on: ubuntu-latest
steps:
- name: check unit test result
if: ${{ needs.test.result != 'success' }}
run: exit 1