style: apply rustfmt to lab.rs clippy fix #21
This file contains hidden or 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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - uses: taiki-e/install-action@cargo-make | |
| - uses: taiki-e/install-action@nextest | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| cache-dependency-path: ui/package-lock.json | |
| - name: Install UI dependencies | |
| working-directory: ui | |
| run: npm ci | |
| - name: Build UI bundle | |
| working-directory: ui | |
| run: npm run build | |
| - name: Install Playwright browser | |
| working-directory: ui | |
| run: npx playwright install --with-deps chromium | |
| - name: Install iperf3 | |
| run: sudo apt-get update && sudo apt-get install -y iperf3 | |
| - name: Enable unprivileged user namespaces | |
| run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 | |
| - name: Check | |
| run: cargo check --workspace --tests | |
| - name: Test | |
| run: cargo nextest run --workspace --profile ci | |
| - name: Clippy | |
| run: cargo clippy --workspace --tests -- -D warnings | |
| - name: Format | |
| run: cargo make format-check | |
| - name: UI E2E | |
| working-directory: ui | |
| run: npm run test:e2e |