refactor: replace IpVersion::to_socket_addr
with Into<IpAddr>
bound
#61
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: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
fmt: | |
name: rustfmt / stable | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Rust rustfmt | |
run: cargo fmt --all -- --check | |
clippy: | |
name: clippy / nightly | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
test: | |
name: test / ${{ matrix.name }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- name: stable | |
rust: stable | |
- name: beta | |
rust: beta | |
- name: nightly | |
rust: nightly | |
- name: MSRV 1.70 | |
rust: '1.70' | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo $HOME/.cargo/bin/rustup default ${{ matrix.rust }} | |
- run: sudo env "PATH=$PATH" CI=1 $HOME/.cargo/bin/cargo test |