Files
ureq/.github/workflows/test.yml
Jacob Hoffman-Andrews 3f78953874 Add a GitHub action for building docs. (#89)
This helps ensure we don't break that doc build.
2020-06-24 21:20:07 +02:00

35 lines
856 B
YAML

on: [push, pull_request]
name: CI
jobs:
build_and_test:
name: Rust project
runs-on: ubuntu-latest
strategy:
matrix:
feature:
- charset
- cookies
- socks-proxy
env:
RUST_BACKTRACE: "1"
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: --no-default-features --features "json tls ${{ matrix.feature }}"
- name: Docs
uses: actions-rs/cargo@v1
with:
command: doc
# Keep in sync with Cargo.toml's [package.metadata.docs.rs]
args: --no-default-features --features "tls json charset cookies socks-proxy"