2023-10-21 07:18:26 +03:00
|
|
|
name: Test
|
2023-09-30 10:36:58 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-10-21 07:18:26 +03:00
|
|
|
|
|
|
|
- name: Cache Dependencies
|
|
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
|
2023-09-30 10:36:58 +03:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
2023-10-21 07:18:26 +03:00
|
|
|
|
2023-09-30 10:36:58 +03:00
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --verbose
|