name: Test on: workflow_call: inputs: os: required: true type: string jobs: test: strategy: fail-fast: false matrix: shard: ['1/4', '2/4', '3/4', '4/4'] name: Node nightly on ${{ inputs.os }} (${{ matrix.shard }}) runs-on: ${{ inputs.os }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Use Node.js nightly build uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 27-nightly cache: yarn - name: install run: yarn --immutable - name: build run: yarn build:js - name: Get number of CPU cores id: cpu-cores uses: SimenB/github-actions-cpu-cores@97330871fe1b7d3529392ea000e3d2c4b357e403 # v3 - name: run node-env tests run: yarn workspace jest-environment-node test - name: run tests uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4 with: timeout_minutes: 10 max_attempts: 3 retry_on: error command: yarn test-ci-partial:parallel --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ matrix.shard }} test-jasmine: strategy: fail-fast: false matrix: shard: ['1/4', '2/4', '3/4', '4/4'] name: Node Nightly on ${{ inputs.os }} using jest-jasmine2 (${{ matrix.shard }}) runs-on: ${{ inputs.os }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Use Node.js nightly build uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 27-nightly cache: yarn - name: install run: yarn --immutable - name: build run: yarn build:js - name: Get number of CPU cores id: cpu-cores uses: SimenB/github-actions-cpu-cores@97330871fe1b7d3529392ea000e3d2c4b357e403 # v3 - name: run tests using jest-jasmine uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4 with: timeout_minutes: 10 max_attempts: 3 retry_on: error command: yarn jest-jasmine-ci --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ matrix.shard }}