swanling 0.0.0

HTTP load test and benchmark framework inspired by Locust and Drill. Written in Rust.
Documentation
name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

env:
  RUST_BACKTRACE: 1

jobs:
  style:
    name: Verify formatting and style
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Verify code formatting
        run: cargo fmt -- --check
      - name: Verify code style
        run: cargo clippy --all-targets --all-features -- -D warnings

  build:
    name: Build and run tests
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Build
        run: cargo build --verbose --all-features
      - name: Docs
        run: cargo rustdoc --lib --examples
      - name: Run tests
        run: cargo test --verbose --all-features

  deploy:
    name: Build and deploy book
    runs-on: ubuntu-latest
    needs: [style, build]

    steps:
      - uses: actions/checkout@v2
      - name: Setup mdbook
        uses: peaceiris/actions-mdbook@v1
        with:
          mdbook-version: "0.4.10"
      - name: Build and test Swanling book
        run: mdbook build book
      - name: Deploy Swanling book
        uses: peaceiris/actions-gh-pages@v3.8.0
        with:
          deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
          publish_dir: ./book/html
          publish_branch: gh-pages