Update hyper crates #53
Workflow file for this run
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
on: [push, pull_request] | |
name: CI | |
concurrency: | |
group: ${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Run Rustfmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: -- --check | |
- name: Run Clippy Sync | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --features sync | |
- name: Run Clippy Async | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --features async | |
doc: | |
name: Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Docs | |
uses: actions-rs/cargo@v1 | |
with: | |
command: doc | |
args: --no-deps | |
build_and_test_sync: | |
name: Test Sync | |
runs-on: ubuntu-latest | |
env: | |
RUST_BACKTRACE: "1" | |
RUSTFLAGS: "-D dead_code -D unused-variables -D unused" | |
steps: | |
- uses: actions/checkout@master | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features sync | |
build_and_test_async: | |
name: Test Async | |
runs-on: ubuntu-latest | |
env: | |
RUST_BACKTRACE: "1" | |
RUSTFLAGS: "-D dead_code -D unused-variables -D unused" | |
steps: | |
- uses: actions/checkout@master | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
# this check is to catch compilation warnings that should be treated as errors | |
# which are not caught if we only rely on the next test step. | |
- name: Check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features async |