feat: frontend architecture enhancements and stabilize local workflows #43
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: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| CI: "true" | |
| jobs: | |
| quality: | |
| name: Quality | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| with: | |
| version: 9.0.0 | |
| run_install: false | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: .node-version | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm check:source-artifacts | |
| - run: pnpm typecheck | |
| - run: node scripts/run-tests.mjs | |
| - run: pnpm docs:site | |
| - run: pnpm check:docs-site | |
| - run: pnpm check:frontend-accessibility | |
| - run: node scripts/check-frontend-fixtures.mjs | |
| - run: pnpm check:source-artifacts | |
| - run: git diff --exit-code -- website/memory/docs | |
| platform: | |
| name: Platform / ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| with: | |
| version: 9.0.0 | |
| run_install: false | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: .node-version | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm test | |
| - run: pnpm build | |
| - name: Isolated synthetic-canary secretless build | |
| run: pnpm check:secretless-build | |
| - if: runner.os == 'Windows' | |
| run: pnpm test:desktop-browser | |
| - name: Build CI-only Tauri sidecar fixture | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: rustc apps/desktop/src-tauri/tests/fixtures/daemon-sidecar.rs -o "$env:RUNNER_TEMP/zharwing-memory-daemon-ci.exe" | |
| - if: runner.os == 'Windows' | |
| env: | |
| ZHARWING_MEMORY_DAEMON_SIDECAR: ${{ runner.temp }}/zharwing-memory-daemon-ci.exe | |
| run: pnpm build:desktop | |
| - run: node scripts/check-frontend-fixtures.mjs | |
| - run: pnpm check:source-artifacts | |
| - run: git diff --exit-code -- . | |
| rust: | |
| name: Rust / Windows | |
| runs-on: windows-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: .node-version | |
| - run: rustc --version | |
| - shell: pwsh | |
| run: rustc apps/desktop/src-tauri/tests/fixtures/daemon-sidecar.rs -o "$env:RUNNER_TEMP/zharwing-memory-daemon-ci.exe" | |
| - run: node scripts/tauri-test.mjs | |
| env: | |
| ZHARWING_MEMORY_DAEMON_SIDECAR: ${{ runner.temp }}/zharwing-memory-daemon-ci.exe |