Skip to content

Better bench

Better bench #1078

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
merge_group:
jobs:
test-macos:
env:
CARGO_TERM_COLOR: always
runs-on:
- namespace-profile-macos-arm64
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install Rust specified toolchain
run: |
rustc --version
- uses: taiki-e/install-action@v2
with:
tool: just,cargo-nextest
- name: Run tests
run: |
cd ${{ github.workspace }}
just test
test-linux:
env:
CARGO_TERM_COLOR: always
runs-on:
- namespace-profile-linux-amd64
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup cargo cache
uses: namespacelabs/nscloud-cache-action@v1
with:
path: |
./target
./target-cov
~/.cargo/git
~/.cargo/registry
~/.rustup
- name: Install Rust specified toolchain
run: |
rustc --version
- uses: taiki-e/install-action@v2
with:
tool: just,cargo-nextest,cargo-llvm-cov
- name: Run tests
run: |
cd ${{ github.workspace }}
cargo clippy --all-targets
cargo test --doc
just ci-test
- name: Upload coverage information
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
verbose: true
file: coverage/lcov.info
test-httpwg-cli:
env:
CARGO_TERM_COLOR: always
runs-on:
- namespace-profile-linux-amd64
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup cargo cache
uses: namespacelabs/nscloud-cache-action@v1
with:
path: |
./target
./target-cov
~/.cargo/git
~/.cargo/registry
~/.rustup
- name: Install Rust specified toolchain
run: |
rustc --version
- uses: taiki-e/install-action@v2
with:
tool: just,cargo-nextest,cargo-llvm-cov
- name: Run httpwg tests (over TCP)
run: |
cd ${{ github.workspace }}
just httpwg-over-tcp
miri:
env:
CARGO_TERM_COLOR: always
runs-on:
- namespace-profile-linux-amd64
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup cargo cache
uses: namespacelabs/nscloud-cache-action@v1
with:
path: |
./target
./target-cov
~/.cargo/git
~/.cargo/registry
~/.rustup
- name: Install Rust specified toolchain
run: |
rustc --version
- uses: taiki-e/install-action@v2
with:
tool: just,cargo-nextest,cargo-llvm-cov
- name: Run miri
run: |
cd ${{ github.workspace }}
just miri
doc:
env:
CARGO_TERM_COLOR: always
runs-on:
- namespace-profile-linux-amd64
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup cargo cache
uses: namespacelabs/nscloud-cache-action@v1
with:
path: |
./target
./target-cov
~/.cargo/git
~/.cargo/registry
~/.rustup
- name: Install Rust specified toolchain
run: |
rustc --version
- uses: taiki-e/install-action@v2
with:
tool: just,cargo-nextest,cargo-llvm-cov
- name: Generate docs (deny warnings)
run: |
cd ${{ github.workspace }}
export RUSTDOCFLAGS="-Dwarnings"
cargo doc --no-deps --document-private-items --all-features
httpwg-gen:
env:
CARGO_TERM_COLOR: always
runs-on:
- namespace-profile-linux-amd64
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup cargo cache
uses: namespacelabs/nscloud-cache-action@v1
with:
path: |
./target
./target-cov
~/.cargo/git
~/.cargo/registry
~/.rustup
- name: Install Rust specified toolchain
run: |
rustc --version
- uses: taiki-e/install-action@v2
with:
tool: just,cargo-nextest,cargo-llvm-cov
- name: Generate httpwg-macros
run: |
cd ${{ github.workspace }}
just httpwg-gen
- name: Assert there are no changes
run: |
git diff --exit-code