Fix invite-watch SSE to broadcast voter name and not auto-dismiss QR #5
Workflow file for this run
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: [stage] | |
| pull_request: | |
| branches: [stage] | |
| env: | |
| API_ENDPOINT_SERVER: "http://localhost:1443" | |
| API_ENDPOINT_TRUSTAUTH_TO_SERVER: "https://localhost:1444" | |
| API_ENDPOINT_TRUSTAUTH: "http://localhost:2443" | |
| API_ENDPOINT_SERVER_TO_TRUSTAUTH: "https://localhost:2444" | |
| jobs: | |
| frontend: | |
| name: Frontend tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Generate mTLS certificates | |
| working-directory: mtls | |
| run: bash mkcerts.sh dev | |
| - name: Build backend binaries | |
| run: cargo build --bin rustsystem-server --bin rustsystem-trustauth | |
| - name: Start backend services | |
| run: | | |
| ./target/debug/rustsystem-server & | |
| ./target/debug/rustsystem-trustauth & | |
| - name: Wait for services to be ready | |
| run: | | |
| until nc -z localhost 1443 2>/dev/null; do sleep 1; done | |
| until nc -z localhost 2443 2>/dev/null; do sleep 1; done | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: frontend/pnpm-lock.yaml | |
| - name: Install dependencies | |
| working-directory: frontend | |
| run: pnpm install --frozen-lockfile | |
| - name: Run tests | |
| working-directory: frontend | |
| run: pnpm test | |
| backend: | |
| name: Backend tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Generate mTLS certificates | |
| working-directory: mtls | |
| run: bash mkcerts.sh dev | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Run tests | |
| run: cargo test |