Skip to content

feat(fast-down): 成功抽象出 http 客户端,但 SeqPull 的实现还有问题 #81

feat(fast-down): 成功抽象出 http 客户端,但 SeqPull 的实现还有问题

feat(fast-down): 成功抽象出 http 客户端,但 SeqPull 的实现还有问题 #81

Workflow file for this run

name: Test
on: [push, pull_request]
permissions:
contents: read
jobs:
check:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
channel:
- stable
- beta
- nightly
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.channel }}
components: clippy
- name: Configure sccache-cache
uses: mozilla-actions/[email protected]
- name: Set Rust Caching Env
run: |
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
- name: Test
run: cargo test --verbose
- name: Build
run: cargo build --verbose
- name: Clippy
run: cargo clippy --verbose -- -Dwarnings
check-minimal:
name: Check minimal versions
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- name: Configure sccache-cache
uses: mozilla-actions/[email protected]
- name: Set Rust Caching Env
run: |
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
- name: Check minimal versions
run: cargo check -Z minimal-versions
format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install latest stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- name: Run rustfmt
run: cargo fmt --check