Skip to content

feat(web): initial support for end to end latency measuring #938

feat(web): initial support for end to end latency measuring

feat(web): initial support for end to end latency measuring #938

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- name: Install npm dependencies
run: npm ci
- name: Build WebUI
run: npm run build
- name: Build
run: cargo build --all --release --verbose
- name: Setup ffmpeg
uses: AnimMouse/setup-ffmpeg@v1
- name: Show version information
run: |
ffmpeg -version
ffprobe -version
- name: Run tests
run: cargo test --all --verbose
- name: Run e2e tests
if: ${{ matrix.os != 'windows-latest' }}
run: npm run e2e:cluster
check_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Show version information
run: |
cargo --version
cargo fmt --version
- name: Cargo format
run: cargo fmt --all -- --check
check_clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- name: Install npm dependencies
run: npm ci
- name: Build WebUI
run: npm run build
- name: Show version information
run: |
cargo --version
cargo clippy --version
- name: Cargo clippy
run: cargo clippy --all-targets --all-features --workspace -- -D warnings