Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

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.yml
index 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 Dependencies
shell: bash
working-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.yml
index 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.yml
biome-check:
needs: path-check
if: needs.path-check.outputs.should_run == 'true' && github.event.pull_request.draft == false
name: Biome Check
- runs-on: linux-latest-middy
+ runs-on: temp-middy
steps:
- name: Checkout Repo
uses: actions/checkout@v6
with:
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 Biome
working-directory: infra
run: biome ci --changed --no-errors-on-unmatched --error-on-warnings
@@ -44,10 +51,18 @@ jobs:
check:
needs: path-check
if: needs.path-check.outputs.should_run == 'true' && github.event.pull_request.draft == false
- runs-on: linux-latest-middy
+ runs-on: temp-middy
steps:
- 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: install
working-directory: infra
run: bun install --frozen-lockfile
@@ -59,17 +74,19 @@ jobs:
status-check:
name: Infra Status Check
if: always()
- needs: [path-check, biome-check]
+ needs: [path-check, biome-check, check]
runs-on: ubuntu-latest
steps:
- name: Check job results
run: |
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" ]]; then
echo "❌ One or more jobs failed"
exit 1
fi
diff --git a/.github/workflows/web-app-check-main.yml b/.github/workflows/web-app-check-main.yml
index 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-middy
steps:
- name: Checkout Repo
uses: 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 Prereqs
uses: ./.github/actions/setup-reqs-web
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
@@ -110,7 +101,7 @@ jobs:
needs: path-check
if: needs.path-check.outputs.should_run == 'true'
name: Biome Check
- runs-on: linux-extra-beefy
+ runs-on: temp-middy
steps:
- name: Checkout Repo
uses: actions/checkout@v6
@@ -133,21 +124,12 @@ jobs:
needs: path-check
if: needs.path-check.outputs.should_run == 'true'
name: Theme Hygiene Inspector
- runs-on: linux-extra-beefy
+ runs-on: temp-middy
steps:
- name: Checkout Repo
uses: actions/checkout@v6
with:
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 Prereqs
uses: ./.github/actions/setup-reqs-web
- name: Check Tailwind Classes
@@ -158,19 +140,10 @@ jobs:
needs: path-check
if: needs.path-check.outputs.should_run == 'true'
name: Test
- runs-on: linux-extra-beefy
+ runs-on: temp-middy
steps:
- name: Checkout Repo
uses: 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
uses: ./.github/actions/setup-reqs-web
with:
@@ -183,7 +156,7 @@ jobs:
needs: path-check
if: needs.path-check.outputs.should_run == 'true'
name: Cycles Import Check
- runs-on: linux-extra-beefy
+ runs-on: temp-middy
steps:
- name: Checkout
uses: actions/checkout@v6
@@ -204,19 +177,10 @@ jobs:
needs: path-check
if: needs.path-check.outputs.should_run == 'true'
name: Build
- runs-on: linux-extra-beefy
+ runs-on: temp-middy
steps:
- name: Checkout Repo
uses: 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
uses: ./.github/actions/setup-reqs-web
- name: Build