[go: up one dir, main page]

tiny_http 0.8.1

Low level HTTP server library
Documentation
on: [push, pull_request]
name: CI
jobs:
  clippy_rustfmt:
    name: Lint & Format
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Install stable toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          components: rustfmt, clippy

      - name: Clippy
        uses: actions-rs/cargo@v1
        with:
          command: clippy
          args: --all-features

#      - name: Format
#        uses: actions-rs/cargo@v1
#        with:
#          command: fmt
#          args: -- --check

  test:
    name: Build & Test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Install stable toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: stable

      - name: Build (Default Features)
        uses: actions-rs/cargo@v1
        with:
          command: build

      - name: Build (All Features)
        uses: actions-rs/cargo@v1
        with:
          command: build
          args: --all-features

      - name: Test
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --all-features

  test_msrv:
    name: Test MSRV
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Install 1.41 toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: 1.41.1
          override: true

      - name: Build (Default Features)
        uses: actions-rs/cargo@v1
        with:
          command: build

      - name: Build
        uses: actions-rs/cargo@v1
        with:
          command: build
          args: --all-features

      - name: Test
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --all-features