ci: install website deployment tools (#19) #7
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] | |
| paths-ignore: | |
| - "*.md" | |
| - "docs/**" | |
| - "AGENTS.md" | |
| - "CONTRIBUTING.md" | |
| - "SECURITY.md" | |
| pull_request: | |
| paths-ignore: | |
| - "*.md" | |
| - "docs/**" | |
| - "AGENTS.md" | |
| - "CONTRIBUTING.md" | |
| - "SECURITY.md" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| rust: | |
| runs-on: [self-hosted, node-b, linux, x64] | |
| env: | |
| CARGO_BUILD_JOBS: 1 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: "1.95" | |
| components: rustfmt,clippy | |
| - run: cargo fmt --all -- --check | |
| - run: cargo check --workspace --exclude rtbit-desktop --no-default-features --features default-tls | |
| - run: cargo test --workspace --exclude rtbit-desktop --no-default-features --features default-tls | |
| - run: cargo clippy --workspace --exclude rtbit-desktop --no-default-features --features default-tls -- -D warnings | |
| - run: cargo build --profile release-github -p rtbit --no-default-features --features default-tls | |
| webui: | |
| runs-on: [self-hosted, node-b, linux, x64] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: crates/librtbit/webui/package-lock.json | |
| - working-directory: crates/librtbit/webui | |
| run: npm ci --no-audit --no-fund | |
| - working-directory: crates/librtbit/webui | |
| run: npm test | |
| - working-directory: crates/librtbit/webui | |
| run: npm run lint | |
| - working-directory: crates/librtbit/webui | |
| run: npm run build | |
| gui-e2e: | |
| runs-on: [self-hosted, node-b, linux, x64] | |
| needs: webui | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: crates/librtbit/webui/package-lock.json | |
| - working-directory: crates/librtbit/webui | |
| run: npm ci --no-audit --no-fund | |
| - working-directory: crates/librtbit/webui | |
| run: npx playwright install --with-deps chromium | |
| - working-directory: crates/librtbit/webui | |
| run: npm run test:e2e | |
| website: | |
| runs-on: [self-hosted, node-b, linux, x64] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - run: ci/tasks/website-check |