Skip to content

Test

Test #118

Workflow file for this run

name: Test
on:
workflow_call:
inputs:
cache-key:
required: true
type: string
workflow_dispatch:
env:
CARGO_CACHE_KEY: ${{ inputs.cache-key || 'default-cache-key-if-none-provided' }}
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
~/.cargo/bin
key: ${{ env.CARGO_CACHE_KEY }}
id: cache-cargo-test
- name: Cargo test
run: cargo test --release --all-targets --all-features -- --test-threads=1