Skip to content

Add support for URL-encoded forms #519

Add support for URL-encoded forms

Add support for URL-encoded forms #519

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
# This uses the toolchain defined in rust-toolchain
jobs:
fmt:
name: "Rustfmt"
runs-on: ubuntu-latest
env:
# Rustfmt requires a nightly toolchain because we use unstable rules. The
# chosen version is fairly arbitrary
TOOLCHAIN: nightly-2024-04-20
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{env.TOOLCHAIN}}
components: rustfmt
- name: Cache cargo files
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-nightly-${{ hashFiles('**/Cargo.lock') }}
- name: Rustfmt
uses: actions-rs/cargo@v1
with:
toolchain: ${{env.TOOLCHAIN}}
command: fmt
args: -- --check
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Rust files
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D clippy::all'
doc:
name: Check Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Rust files
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --all-features --document-private-items
env:
RUSTDOCFLAGS: -D warnings
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Rust files
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test