feat: no generic parameter in connect, doc examples #153
This file contains 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: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Rust setup | |
uses: dtolnay/rust-toolchain@stable | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
- name: Test | |
run: cargo test --workspace --all-targets --all-features | |
lint: | |
name: Lint | |
runs-on: ubuntu-22.04 | |
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }} | |
permissions: | |
pull-requests: write | |
contents: read | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Rust setup | |
uses: dtolnay/rust-toolchain@stable | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
- uses: giraffate/clippy-action@v1 | |
with: | |
reporter: 'github-pr-review' | |
github_token: ${{ github.token }} | |
- name: Check cargo fmt | |
run: cargo fmt --all -- --check |