name: Rust
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v1
- name: Build
run: cargo build
- name: Run tests (no features)
run: cargo test --no-default-features
- name: Run tests (serialize)
run: cargo test --features serialize
- name: Run tests (encoding+serialize)
run: cargo test --features encoding,serialize
- name: Run tests (escape-html+serialize)
run: cargo test --features escape-html,serialize
- name: Check fmt
run: cargo fmt -- --check