Skip to content

Try introducing a regression #552

Try introducing a regression

Try introducing a regression #552

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
merge_group:
jobs:
test-macos:
runs-on: macos-12
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install Rust specified toolchain
run: rustup show
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Make sure things build
run: |
cargo build --profile ci
test-windows:
runs-on: windows-2022
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install Rust specified toolchain
run: rustup show
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Make sure things build
run: |
cargo build --profile ci
test-linux:
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUSTC_WRAPPER: sccache
CARGO_HOME: /vol/cargo
runs-on: self-hosted
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Run unit tests and h2spec
run: |
cd ${{ github.workspace }}
sccache --zero-stats
cargo clippy
cargo clippy --manifest-path test-crates/fluke-tls-sample/Cargo.toml
mkdir tools
export PATH=$PATH:${PWD}/tools
# (pushd tools && curl -L https://github.com/summerwind/h2spec/releases/download/v2.6.0/h2spec_linux_amd64.tar.gz | tar -xz && popd)
# Uses https://github.com/summerwind/h2spec/pull/123, more precisely
# https://github.com/fasterthanlime/h2spec/commit/72a6b9b2b01133d292bd74e019fde86c3638094a
(pushd tools && curl -fL https://github.com/hapsoc/h2spec-binaries/releases/download/72a6b9b/h2spec -o h2spec && chmod +x h2spec && popd)
just ci-test
sccache --show-stats
- name: Report coverage (zgosalvez/github-actions-report-lcov)
uses: zgosalvez/github-actions-report-lcov@v3
with:
coverage-files: coverage/lcov.info
minimum-coverage: 70
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: .
- name: Upload h2spec Report
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
name: h2spec-results
path: |
target/h2spec-generic.xml
target/h2spec-hpack.xml
target/h2spec-http2.xml
retention-days: 90