Skip to content

Test

Test #187

Workflow file for this run

name: Test
on:
push: null
pull_request: null
schedule:
- cron: '0 12 * * *'
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
rust:
- stable
- nightly
features:
- ""
- --no-default-features
include:
- rust: nightly
cargo_flags: -Z minimal-versions
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/.cargo/
target
key: ${{ matrix.os }}-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.rust }}-
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Tauri deps
if: matrix.os == 'ubuntu-latest'
run:
sudo apt update;
sudo apt install libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev;
- name: Build
run:
cargo build ${{ matrix.features }} ${{ matrix.cargo_flags }}
- name: Test
run:
cargo test ${{ matrix.features }} --all-targets --no-fail-fast --workspace
- name: Doc Test
run:
cargo test ${{ matrix.features }} --doc --no-fail-fast --workspace
- name: Build Docs
run:
cargo doc ${{ matrix.features }} --workspace --no-deps