Skip to content

feat(plugin-algolia): Integrate startTransition for navigation and refactor preconnect logic πŸ” #6736

feat(plugin-algolia): Integrate startTransition for navigation and refactor preconnect logic πŸ”

feat(plugin-algolia): Integrate startTransition for navigation and refactor preconnect logic πŸ” #6736

Workflow file for this run

name: Test (macOS)
concurrency:
group: macos-test-${{ github.head_ref }}
cancel-in-progress: true
# Controls when the action will run.
on:
# Triggers the workflow on pull request events but only for the main branch
pull_request:
branches: [main]
merge_group:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions: {}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
ut-mac:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
matrix:
node-version: [22.x]
os: [macos-14] # M1 Mac
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 1
- name: Install Pnpm
run: |
npm install -g corepack@latest --force
corepack enable
- name: Check skip CI
run: echo "RESULT=$(node ./scripts/skipCI.js)" >> "$GITHUB_OUTPUT"
id: skip-ci
- name: Log skip CI result
run: echo "${{steps.skip-ci.outputs.RESULT}}"
- name: Setup Node.js ${{ matrix.node-version }}
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
package-manager-cache: false
- name: Nx Cache
id: nx-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ runner.os }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-${{ runner.os }}
- name: Install Dependencies
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
run: pnpm install --ignore-scripts
- name: Build Packages
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
run: pnpm run build
- name: Build Website # for test
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
run: pnpm run build:website
- name: Unit Test
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
run: pnpm run test:unit
- name: E2E Test
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
run: pnpm run test:e2e
- name: Upload Playwright Report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 14