leptos-use/.github/workflows/tests.yml

33 lines
1 KiB
YAML
Raw Normal View History

2023-07-03 15:16:22 +01:00
on:
pull_request:
workflow_dispatch:
name: Tests
permissions: write-all
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
components: rustfmt, clippy, rust-src
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --check
2023-07-13 11:36:38 +01:00
- name: Clippy
run: cargo clippy --features prost,serde,docs,math --tests -- -D warnings
- name: Run tests (general)
2024-07-01 02:29:27 +01:00
run: cargo test --features math,docs,ssr,prost,json_serde,msgpack_serde,bincode_serde,base64
- name: Run tests (axum)
2024-07-01 02:29:27 +01:00
run: cargo test --features math,docs,ssr,prost,json_serde,msgpack_serde,bincode_serde,base64,axum --doc use_cookie::use_cookie
- name: Run tests (actix)
2024-07-01 02:29:27 +01:00
run: cargo test --features math,docs,ssr,prost,json_serde,msgpack_serde,bincode_serde,base64,actix --doc use_cookie::use_cookie