headers 0.3.8

typed HTTP headers
Documentation
name: CI

on: [push, pull_request]

env:
  minrust: 1.51.0

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest

    strategy:
      matrix:
        rust: [stable, beta, nightly]

    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: ${{ matrix.rust }}
          profile: minimal
          override: true

      - name: cargo test --all
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --all
      - name: cargo test --benches
        if: matrix.rust == 'nightly'
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --benches

      - name: Check minimal versions
        if: matrix.rust == 'nightly'
        run: |
          cargo clean
          cargo update -Z minimal-versions
          cargo check

  MSRV:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Install rust ${{ env.minrust }}
        uses: actions-rs/toolchain@v1
        with:
          toolchain: ${{ env.minrust }}
          profile: minimal
          override: true

      - name: cargo build
        uses: actions-rs/cargo@v1
        with:
          command: build