Merge pull request #197 from estie-inc/docs/error-handling-example-co… #498
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: test | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
| RUSTFLAGS: -Dwarnings | |
| SNOWFLAKE_USERNAME: ${{ secrets.SNOWFLAKE_USERNAME }} | |
| SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }} | |
| SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }} | |
| SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }} | |
| SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }} | |
| SNOWFLAKE_SCHEMA: ${{ secrets.SNOWFLAKE_SCHEMA }} | |
| SNOWFLAKE_PRIVATE_KEY: ${{ secrets.SNOWFLAKE_PRIVATE_KEY }} | |
| SNOWFLAKE_PRIVATE_KEY_PASSWORD: ${{ secrets.SNOWFLAKE_PRIVATE_KEY_PASSWORD }} | |
| jobs: | |
| test: | |
| name: Rust ${{ matrix.version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| version: ["1.88", stable] | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - uses: dtolnay/rust-toolchain@f7ccc83f9ed1e5b9c81d8a67d7ad1a747e22a561 # 2025-12-17 | |
| with: | |
| toolchain: ${{ matrix.version }} | |
| components: rustfmt, clippy | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Clippy | |
| run: cargo clippy --profile ci --workspace --lib --tests --examples --all-features -- -D warnings | |
| - name: Check default features | |
| run: cargo check --profile ci --workspace --lib --tests --examples | |
| - name: Check all features | |
| run: cargo check --profile ci --workspace --lib --tests --examples --all-features | |
| - name: Check without default features | |
| run: cargo check --profile ci --workspace --lib --tests --examples --no-default-features | |
| - name: Test library | |
| run: cargo test --profile ci --workspace --all-features --lib | |
| - name: Test derive macro | |
| run: cargo test --profile ci --workspace --all-features --test derive_trybuild | |
| - name: Test auto trait contracts | |
| run: cargo test --profile ci --workspace --all-features --test auto_trait_trybuild | |
| - name: Test integration | |
| run: cargo test --profile ci --workspace --test integration | |
| - name: Test documentation | |
| run: cargo test --profile ci --workspace --all-features --doc |