Skip to content

Fix HTTP aliasing not working #81

Fix HTTP aliasing not working

Fix HTTP aliasing not working #81

Workflow file for this run

name: Validate
on:
push:
branches: ["**"]
pull_request:
permissions:
contents: read
env:
RUST_MSRV: 1.82.0
jobs:
rustfmt:
name: Check rustfmt formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Run rustfmt
run: |
rustup component add rustfmt
cargo fmt --check
clippy:
name: Check Clippy lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Run Clippy
run: |
rustup component add clippy
cargo clippy -- -D warnings
build-msrv:
name: Build on MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build
run: |
rustup toolchain install ${RUST_MSRV}-x86_64-unknown-linux-gnu
rustup override set ${RUST_MSRV}-x86_64-unknown-linux-gnu
cargo build
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Test
run: |
cargo install cargo-llvm-cov
cargo llvm-cov --verbose --codecov --output-path codecov.json
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
files: ./codecov.json
token: ${{ secrets.CODECOV_TOKEN }}
build:
if: github.ref == 'refs/heads/main'
permissions:
contents: read
packages: write
needs:
- rustfmt
- clippy
- build-msrv
- tests
uses: ./.github/workflows/build.yml
secrets: inherit