chore: release v0.8.1 (#22) #106
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: Rust | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| pull_request: | |
| branches: | |
| - "**" | |
| env: | |
| RUST_BACKTRACE: 1 | |
| RUST_LOG: apollo_client | |
| RUSTFLAGS: "-D warnings" | |
| jobs: | |
| bulid-and-test: | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| # - macos-latest | |
| # - windows-latest | |
| features: | |
| - --no-default-features | |
| - "" | |
| - --no-default-features --features auth,conf | |
| # - --no-default-features --features host,open | |
| - --features full | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Docker compose | |
| run: docker compose up -d | |
| - name: Build | |
| run: cargo build --release --verbose ${{ matrix.features }} | |
| - name: Test | |
| run: cargo test --release --verbose ${{ matrix.features }} | |
| check-fmt-and-docs: | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| # - macos-latest | |
| # - windows-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup | |
| run: rustup toolchain install nightly --component rustfmt --allow-downgrade | |
| - name: Fmt | |
| run: cargo +nightly fmt --all -- --check | |
| - name: Doc | |
| run: cargo +nightly rustdoc --all-features -- --cfg docsrs |