Repository navigation
build(deps): bump azure/login from 053f7285eb20bf5469ef084617b0b24d3cec53fc to a641126d1b8aa4d1fa005f4f92df94a3a4c4c906 #314
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: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.ref_name) || github.sha }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CI: true | |
| jobs: | |
| check: | |
| name: Test and lint | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Install Node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version-file: frontend/.nvmrc | |
| - name: Install UI dependencies | |
| working-directory: frontend | |
| run: | | |
| npm install --global pnpm@11.25.0 | |
| pnpm install --frozen-lockfile | |
| - name: Install Linux desktop dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install --no-install-recommends \ | |
| libwebkit2gtk-4.1-dev \ | |
| libxdo-dev \ | |
| libssl-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev | |
| - name: Set up Rust build cache | |
| uses: ./.github/actions/rust-build-cache | |
| with: | |
| cache-key: ci | |
| save: ${{ github.ref == 'refs/heads/main' }} | |
| - name: Install nextest | |
| uses: taiki-e/install-action@4cef1412cce204788f482e778a0b9187f9626a29 # v2 | |
| with: | |
| tool: nextest | |
| # Build once before Cargo, which embeds the frontend assets. | |
| - name: Build UI | |
| working-directory: frontend | |
| run: pnpm build | |
| - name: Test Rust | |
| run: cargo nextest run --workspace | |
| - name: Lint Rust | |
| run: make lint | |
| - name: Lint UI and test packaging | |
| working-directory: frontend | |
| run: pnpm check:lint | |
| - name: Test UI in Chrome | |
| working-directory: frontend | |
| env: | |
| PLAYWRIGHT_CHANNEL: chrome | |
| run: | | |
| google-chrome --version | |
| pnpm test:storybook | |
| - name: Check generated schemas | |
| run: | | |
| make generate-schema | |
| git diff --exit-code -- schema | |
| windows: | |
| name: Windows agent tests | |
| runs-on: windows-2025 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # master | |
| with: | |
| toolchain: "1.98" | |
| - name: Restore Rust cache | |
| uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 | |
| with: | |
| shared-key: ci-windows | |
| cache-workspace-crates: true | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| - name: Install nextest | |
| uses: taiki-e/install-action@4cef1412cce204788f482e778a0b9187f9626a29 # v2 | |
| with: | |
| tool: nextest | |
| - name: Test agent | |
| run: cargo nextest run --locked --package agentdesktop-agent --lib | |
| container: | |
| name: Container | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Build controller image | |
| run: make docker BUILD_PROFILE=debug |