feat: use builder pattern (#5) #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| paths: | |
| - src/** | |
| - tests/** | |
| - Cargo.toml | |
| - Cargo.lock | |
| jobs: | |
| test: | |
| name: Test crate | |
| services: | |
| valkey: | |
| image: valkey/valkey:7.2-alpine | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "valkey-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| postgres: | |
| image: postgres:16-alpine | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| run: rustup toolchain install stable --profile minimal --no-self-update | |
| - name: Setup rust-cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install nextest | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: nextest@0.9 | |
| - name: Build tests | |
| run: cargo build --tests --all-features -p rocket_flex_session | |
| - name: Test crate | |
| run: cargo nextest run --all-features --profile ci -p rocket_flex_session | |
| - name: Test docs | |
| run: cargo test --doc --all-features -p rocket_flex_session |