2023-10-21 07:18:26 +03:00
|
|
|
name: Test
|
2023-09-30 10:36:58 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-02-12 10:12:49 +03:00
|
|
|
branches: [main]
|
2023-09-30 10:36:58 +03:00
|
|
|
pull_request:
|
2024-02-12 10:12:49 +03:00
|
|
|
branches: [main]
|
2023-09-30 10:36:58 +03:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
2023-10-21 08:27:26 +03:00
|
|
|
test:
|
2023-09-30 10:36:58 +03:00
|
|
|
strategy:
|
2023-10-21 08:27:26 +03:00
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2023-09-30 10:36:58 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2024-02-12 10:12:49 +03:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-21 07:18:26 +03:00
|
|
|
|
2024-02-12 10:12:49 +03:00
|
|
|
- name: Setup Rust toolchain
|
2023-11-25 06:57:44 +03:00
|
|
|
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 07:18:26 +03:00
|
|
|
|
2023-10-21 08:27:26 +03:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
2023-10-21 07:18:26 +03:00
|
|
|
|
2024-02-12 10:12:49 +03:00
|
|
|
- name: Test
|
2024-05-15 18:23:23 +03:00
|
|
|
run: cargo test --all --verbose
|