Skip to content

Bump h2 from 0.3.17 to 0.3.24 #138

Bump h2 from 0.3.17 to 0.3.24

Bump h2 from 0.3.17 to 0.3.24 #138

Workflow file for this run

name: test
on:
push:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
test:
name: Build & test
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
rust:
- stable
- beta
- nightly
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
default: true
components: ${{ matrix.components }}
- name: Restore cache
uses: Swatinem/rust-cache@v1
- name: Build & test
run: cargo test --all && cargo test --all --all-features
rustfmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
default: true
components: rustfmt
- run: cargo fmt --all -- --check
# This somehow generates a lot of false positives - links to things that are not mentioned in files at all :-(
# links:
# name: Check documentation links
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
#
# - name: Install Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# default: true
#
# - name: Restore cache
# uses: Swatinem/rust-cache@v1
#
# - name: Install cargo-deadlinks
# uses: actions-rs/[email protected]
# with:
# crate: cargo-deadlinks
# use-tool-cache: true
#
# - name: Check links
# run: |
# for package in $(cargo metadata --no-deps --format-version=1 | jq -r '.packages[] | .name'); do
# cargo rustdoc -p "$package" --all-features -- -D warnings
# dname=$(echo "$package" | tr '-' '_')
# cargo deadlinks --dir "target/doc/$dname" --check-intra-doc-links --ignore-fragments
# done
clippy:
name: Clippy lints
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
components: clippy
- name: Restore cache
uses: Swatinem/rust-cache@v1
- name: Run clippy linter
run: cargo clippy --all --all-features --tests -- -D clippy::all -D warnings