diff --git a/.github/workflows/ci-pull-requests.yml b/.github/workflows/ci-pull-requests.yml index 1ce7427098..e85f649655 100644 --- a/.github/workflows/ci-pull-requests.yml +++ b/.github/workflows/ci-pull-requests.yml @@ -9,14 +9,16 @@ on: jobs: install-and-build: name: Install & Build - runs-on: ubuntu-latest + runs-on: blacksmith-2vcpu-ubuntu-2204 + env: + NODE_OPTIONS: '--max-old-space-size=4096' steps: - uses: actions/checkout@v4.1.1 with: ref: refs/pull/${{ github.event.pull_request.number }}/merge - run: corepack enable - - uses: actions/setup-node@v4.0.2 + - uses: useblacksmith/setup-node@v5 with: node-version: 20.x cache: pnpm @@ -25,7 +27,7 @@ jobs: run: pnpm install --frozen-lockfile - name: Setup build cache - uses: rharkor/caching-for-turbo@v1.5 + uses: useblacksmith/caching-for-turbo@v1 - name: Build run: pnpm build @@ -37,7 +39,7 @@ jobs: run: pnpm typecheck - name: Cache build artifacts - uses: actions/cache/save@v4.0.0 + uses: useblacksmith/cache/save@v5 with: path: ./packages/**/dist key: ${{ github.sha }}-base:build diff --git a/.github/workflows/linting-reusable.yml b/.github/workflows/linting-reusable.yml index ed8d234940..287ba270c9 100644 --- a/.github/workflows/linting-reusable.yml +++ b/.github/workflows/linting-reusable.yml @@ -17,14 +17,16 @@ on: jobs: lint: name: Lint - runs-on: ubuntu-latest + runs-on: blacksmith-2vcpu-ubuntu-2204 + env: + NODE_OPTIONS: '--max-old-space-size=4096' steps: - uses: actions/checkout@v4.1.1 with: ref: ${{ inputs.ref }} - run: corepack enable - - uses: actions/setup-node@v4.0.2 + - uses: useblacksmith/setup-node@v5 with: node-version: 20.x cache: pnpm @@ -33,7 +35,7 @@ jobs: run: pnpm install --frozen-lockfile - name: Setup build cache - uses: rharkor/caching-for-turbo@v1.5 + uses: useblacksmith/caching-for-turbo@v1 - name: Build if: ${{ inputs.cacheKey == '' }} @@ -41,7 +43,7 @@ jobs: - name: Restore cached build artifacts if: ${{ inputs.cacheKey != '' }} - uses: actions/cache/restore@v4.0.0 + uses: useblacksmith/cache/restore@v5 with: path: ./packages/**/dist key: ${{ inputs.cacheKey }} diff --git a/.github/workflows/units-tests-reusable.yml b/.github/workflows/units-tests-reusable.yml index 06d560cdbe..312f3a8807 100644 --- a/.github/workflows/units-tests-reusable.yml +++ b/.github/workflows/units-tests-reusable.yml @@ -38,7 +38,7 @@ on: jobs: unit-test: name: Unit tests - runs-on: ubuntu-latest + runs-on: blacksmith-2vcpu-ubuntu-2204 env: TURBO_FORCE: ${{ inputs.ignoreTurboCache }} COVERAGE_ENABLED: ${{ inputs.collectCoverage }} @@ -49,7 +49,7 @@ jobs: - run: corepack enable - name: Use Node.js ${{ inputs.nodeVersion }} - uses: actions/setup-node@v4.0.2 + uses: useblacksmith/setup-node@v5 with: node-version: ${{ inputs.nodeVersion }} cache: pnpm @@ -58,7 +58,7 @@ jobs: run: pnpm install --frozen-lockfile - name: Setup build cache - uses: rharkor/caching-for-turbo@v1.5 + uses: useblacksmith/caching-for-turbo@v1 - name: Build if: ${{ inputs.cacheKey == '' }} @@ -66,7 +66,7 @@ jobs: - name: Restore cached build artifacts if: ${{ inputs.cacheKey != '' }} - uses: actions/cache/restore@v4.0.0 + uses: useblacksmith/cache/restore@v5 with: path: ./packages/**/dist key: ${{ inputs.cacheKey }}