Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
Seanaye/ci/move jobs to smaller runners (#3147)
Sean Aye423c5059066e
diff --git a/.github/actions/setup-reqs-web/action.yml b/.github/actions/setup-reqs-web/action.ymlindex b2d9b7484e..96a97d3706 100644--- a/.github/actions/setup-reqs-web/action.yml+++ b/.github/actions/setup-reqs-web/action.yml@@ -32,9 +32,7 @@ runs:- name: Install Dependenciesshell: bashworking-directory: js- run: |- bun install --frozen-lockfile- bun add -g npm+ run: bun install --frozen-lockfile- name: Get Playwright version (for caching)if: inputs.playwright == 'true'diff --git a/.github/workflows/code-check-infra.yml b/.github/workflows/code-check-infra.ymlindex 4bd2618c78..79bafdfa75 100644--- a/.github/workflows/code-check-infra.yml+++ b/.github/workflows/code-check-infra.yml@@ -21,22 +21,29 @@ jobs:filters: |should_run:- 'infra/**'+ - 'flake.nix'+ - 'flake.lock'- .github/workflows/code-check-infra.ymlbiome-check:needs: path-checkif: needs.path-check.outputs.should_run == 'true' && github.event.pull_request.draft == falsename: Biome Check- runs-on: linux-latest-middy+ runs-on: temp-middysteps:- name: Checkout Repouses: actions/checkout@v6with:fetch-depth: 0- - name: Setup Biome- uses: biomejs/setup-biome@v2- with:- version: 2.4.12+ - name: Add Nix to PATH+ run: echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"+ - name: Enter Nix dev shell+ run: |+ set -euo pipefail+ nix print-dev-env --accept-flake-config > /tmp/dev-env+ echo "BASH_ENV=/tmp/dev-env" >> "$GITHUB_ENV"+ source /tmp/dev-env+ printf '%s\n' "$PATH" | tr ':' '\n' >> "$GITHUB_PATH"- name: Run Biomeworking-directory: infrarun: biome ci --changed --no-errors-on-unmatched --error-on-warnings@@ -44,10 +51,18 @@ jobs:check:needs: path-checkif: needs.path-check.outputs.should_run == 'true' && github.event.pull_request.draft == false- runs-on: linux-latest-middy+ runs-on: temp-middysteps:- uses: actions/checkout@v6- - uses: oven-sh/setup-bun@v2+ - name: Add Nix to PATH+ run: echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"+ - name: Enter Nix dev shell+ run: |+ set -euo pipefail+ nix print-dev-env --accept-flake-config > /tmp/dev-env+ echo "BASH_ENV=/tmp/dev-env" >> "$GITHUB_ENV"+ source /tmp/dev-env+ printf '%s\n' "$PATH" | tr ':' '\n' >> "$GITHUB_PATH"- name: installworking-directory: infrarun: bun install --frozen-lockfile@@ -59,17 +74,19 @@ jobs:status-check:name: Infra Status Checkif: always()- needs: [path-check, biome-check]+ needs: [path-check, biome-check, check]runs-on: ubuntu-lateststeps:- name: Check job resultsrun: |echo "path-check: ${{ needs.path-check.result }}"echo "biome-check: ${{ needs.biome-check.result }}"+ echo "check: ${{ needs.check.result }}"# Fail if any job failed (skipped and success are both OK)if [[ "${{ needs.path-check.result }}" == "failure" ]] || \- [[ "${{ needs.biome-check.result }}" == "failure" ]]; then+ [[ "${{ needs.biome-check.result }}" == "failure" ]] || \+ [[ "${{ needs.check.result }}" == "failure" ]]; thenecho "❌ One or more jobs failed"exit 1fidiff --git a/.github/workflows/web-app-check-main.yml b/.github/workflows/web-app-check-main.ymlindex 1451d3d9f0..0c7cdd314b 100644--- a/.github/workflows/web-app-check-main.yml+++ b/.github/workflows/web-app-check-main.yml@@ -48,19 +48,10 @@ jobs:# Run the type check if rust code or frontend code has changed.if: needs.path-check.outputs.should_run == 'true' || needs.path-check.outputs.api_changed == 'true'name: Typecheck- runs-on: linux-extra-beefy+ runs-on: temp-middysteps:- name: Checkout Repouses: actions/checkout@v6- - name: Add Nix to PATH- run: echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"- - name: Enter Nix dev shell- run: |- set -euo pipefail- nix print-dev-env --accept-flake-config > /tmp/dev-env- echo "BASH_ENV=/tmp/dev-env" >> "$GITHUB_ENV"- source /tmp/dev-env- printf '%s\n' "$PATH" | tr ':' '\n' >> "$GITHUB_PATH"- name: Setup Prereqsuses: ./.github/actions/setup-reqs-web- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6@@ -110,7 +101,7 @@ jobs:needs: path-checkif: needs.path-check.outputs.should_run == 'true'name: Biome Check- runs-on: linux-extra-beefy+ runs-on: temp-middysteps:- name: Checkout Repouses: actions/checkout@v6@@ -133,21 +124,12 @@ jobs:needs: path-checkif: needs.path-check.outputs.should_run == 'true'name: Theme Hygiene Inspector- runs-on: linux-extra-beefy+ runs-on: temp-middysteps:- name: Checkout Repouses: actions/checkout@v6with:fetch-depth: 0- - name: Add Nix to PATH- run: echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"- - name: Enter Nix dev shell- run: |- set -euo pipefail- nix print-dev-env --accept-flake-config > /tmp/dev-env- echo "BASH_ENV=/tmp/dev-env" >> "$GITHUB_ENV"- source /tmp/dev-env- printf '%s\n' "$PATH" | tr ':' '\n' >> "$GITHUB_PATH"- name: Setup Prereqsuses: ./.github/actions/setup-reqs-web- name: Check Tailwind Classes@@ -158,19 +140,10 @@ jobs:needs: path-checkif: needs.path-check.outputs.should_run == 'true'name: Test- runs-on: linux-extra-beefy+ runs-on: temp-middysteps:- name: Checkout Repouses: actions/checkout@v6- - name: Add Nix to PATH- run: echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"- - name: Enter Nix dev shell- run: |- set -euo pipefail- nix print-dev-env --accept-flake-config > /tmp/dev-env- echo "BASH_ENV=/tmp/dev-env" >> "$GITHUB_ENV"- source /tmp/dev-env- printf '%s\n' "$PATH" | tr ':' '\n' >> "$GITHUB_PATH"- name: Setupuses: ./.github/actions/setup-reqs-webwith:@@ -183,7 +156,7 @@ jobs:needs: path-checkif: needs.path-check.outputs.should_run == 'true'name: Cycles Import Check- runs-on: linux-extra-beefy+ runs-on: temp-middysteps:- name: Checkoutuses: actions/checkout@v6@@ -204,19 +177,10 @@ jobs:needs: path-checkif: needs.path-check.outputs.should_run == 'true'name: Build- runs-on: linux-extra-beefy+ runs-on: temp-middysteps:- name: Checkout Repouses: actions/checkout@v6- - name: Add Nix to PATH- run: echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"- - name: Enter Nix dev shell- run: |- set -euo pipefail- nix print-dev-env --accept-flake-config > /tmp/dev-env- echo "BASH_ENV=/tmp/dev-env" >> "$GITHUB_ENV"- source /tmp/dev-env- printf '%s\n' "$PATH" | tr ':' '\n' >> "$GITHUB_PATH"- name: Setupuses: ./.github/actions/setup-reqs-web- name: Build