Run CI checks on windows #25
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
| defaults: | |
| run: | |
| working-directory: ./crates/deadpool-libsql | |
| env: | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| check-integration: | |
| name: Check integration | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| - run: cargo check --features ${{ matrix.feature }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| feature: | |
| - serde | |
| - core | |
| - remote | |
| - replication | |
| - sync | |
| os: | |
| - ubuntu-latest | |
| - windows-2025 | |
| check-reexported-features: | |
| name: Check re-exported features | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| - uses: dcarbone/install-jq-action@v3 | |
| - uses: dcarbone/install-yq-action@v1 | |
| - run: ../../tools/check-reexported-features.sh | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| components: clippy | |
| profile: minimal | |
| toolchain: stable | |
| - run: cargo clippy --no-deps --features rt_async-std_1,rt_tokio_1,serde -- -D warnings | |
| msrv: | |
| name: MSRV | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: nightly | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| override: "true" | |
| profile: minimal | |
| toolchain: "1.81" | |
| - run: ../../tools/cargo-update-minimal-versions.sh 1.81 | |
| - run: cargo check --features rt_async-std_1,rt_tokio_1,serde | |
| rustdoc: | |
| name: Doc | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| - run: cargo doc --no-deps --features rt_async-std_1,rt_tokio_1,serde | |
| rustfmt: | |
| name: rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| components: rustfmt | |
| profile: minimal | |
| toolchain: stable | |
| - run: cargo fmt --check | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| services: {} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| - env: {} | |
| run: cargo test --features rt_async-std_1,rt_tokio_1,serde | |
| name: deadpool-libsql | |
| "on": | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - crates/deadpool-libsql/** | |
| - .github/workflows/deadpool-libsql.yml | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - crates/deadpool-libsql/** | |
| - .github/workflows/deadpool-libsql.yml | |
| tags: | |
| - deadpool-libsql-v* |