yazi/.github/workflows/test.yml

32 lines
575 B
YAML
Raw Normal View History

name: Test
on:
push:
2024-02-12 10:12:49 +03:00
branches: [main]
pull_request:
2024-02-12 10:12:49 +03:00
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
2023-10-21 08:27:26 +03:00
test:
strategy:
2023-10-21 08:27:26 +03:00
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
2024-02-12 10:12:49 +03:00
- uses: actions/checkout@v4
2024-02-12 10:12:49 +03:00
- name: Setup Rust toolchain
run: rustup toolchain install stable --profile minimal
2024-02-12 10:12:49 +03:00
- name: Setup Rust cache
2023-10-21 08:27:26 +03:00
uses: Swatinem/rust-cache@v2
2023-10-21 08:27:26 +03:00
- name: Build
run: cargo build --verbose
2024-02-12 10:12:49 +03:00
- name: Test
run: cargo test --all --verbose