yazi/.github/workflows/test.yml
Valter Santos 6bc4a0295d
docs: correct the cargo test command in the contribution guide (#2182)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2025-01-09 15:52:13 +08:00

33 lines
646 B
YAML

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
run: rustup toolchain install stable --profile minimal
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --workspace --verbose