forwarding bugfix: correctly format non-token values for host, by, and proto #1313
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
merge_group: | |
push: | |
branches: | |
- main | |
# env: | |
# RUSTFLAGS: -Dwarnings | |
jobs: | |
test: | |
name: Build and Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
rust: [stable] | |
features: | |
- "--features smol,trillium-testing/smol" | |
- "--features tokio,trillium-testing/tokio" | |
- "--features async-std,trillium-testing/async-std" | |
- "" | |
steps: | |
- uses: actions/checkout@master | |
- name: Install mkcert (Linux) | |
run: curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" && chmod +x mkcert-v*-linux-amd64 && sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert && mkcert -install && mkcert localhost | |
if: matrix.os == 'ubuntu-latest' | |
- name: Install ${{ matrix.rust }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace ${{ matrix.features }} | |
check_fmt_and_docs: | |
name: Lints and Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rustfmt, clippy | |
override: true | |
- uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features | |
- name: Format | |
run: cargo fmt --all -- --check | |
- name: Run cargo-udeps | |
uses: aig787/cargo-udeps-action@v1 | |
with: | |
version: latest | |
args: --all-targets | |
- name: Docs | |
run: cargo doc --no-deps --features smol,trillium-testing/smol |